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 #5
node v10.24.1
version:
master
endpoint
share
tweet
// Initialize x in the global scope let x = true; function hoist() { // Initialize x in the function scope if (3 === 4) { let x = false; } console.log(x); } hoist();
Loading…
no comments
sign in
to comment