Output: logging a var and a let before their declarations
EasyP1Output
What does this code print?
1console.log(a);2var a = 1;3console.log(b);4let b = 2;5console.log('done');
Saved automatically
One line per console.log. Arrays as [1, 2, 3], objects as { a: 1 }, an uncaught error as Uncaught TypeError: message (Chrome and Node wording).
Hints
Saved automatically