JavaScript scope
Which statemens apply to javascript scope
true
false
x in result is 5
[ ]
[x]
result in calculate function is 18
[x]
[ ]
output of console log is 18
[ ]
[x]
Sorry... Try again
Which statemens apply to javascript scope
yes
no
output of console log 1 is undefined
[ ]
[x]
output of console log 2 is Kate
[x]
[ ]
Sorry... Try again
Which statemens apply to javascript scope
yes
no
output of console log 1 is 1
[x]
[ ]
output of console log 2 is buy more coffee
[ ]
[x]
Sorry... Try again
Which statemens apply to javascript scope
yes
no
The lifetime of a JavaScript variable starts when it is declared.
[x]
[ ]
Local variables stay in scope after the function is completed.
[ ]
[x]
Global variables are deleted when you close the page.
[x]
[ ]
Sorry... Try again
Last updated
Was this helpful?