Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
hoisting #4
node v10.24.1
version:
master
endpoint
share
tweet
// Initialize x in the global scope var x = 100; function hoist() { // A condition that should not affect the outcome of the code if (false) { var x = 200; } console.log(x); } hoist();
Loading…
no comments
sign in
to comment