Junior — Senior
How do var and let behave during variable hoisting
livecode
Task condition
What will be output to the console when running the following code:
console.log(x);
var x = 10;
console.log(y);
let y = 20;
livecode
Task condition
What will be output to the console when running the following code:
console.log(x);
var x = 10;
console.log(y);
let y = 20;