Name all global object properties (4 properties)
Infinity
NaN
undefined
globalThis
Name all global object functions (1 + 4 number methods + 4 encode decode URI)
eval()
isFinite()
isNaN()
parseFloat()
parseInt()
encodeURI()
encodeURIComponent()
decodeURI()
decodeURIComponent()
What does globalThis refer to?
the global object
Window in browser
Global Object in node and vs code
All global object properties can be accessed on their own:
alert("Hello");
vs
window.alert("Hello");
t or ft
When you write var: var gVar = 5; Where is it actually placing the variable?
As a property on the global object
alert(window.gVar); // 5
global functions and variables declared with var (not let/const!) become the property of the global object:
var gVar = 5;
is not the same as
global.gVar = 5
t or f
f