ecma 6 quiz code example
Example 1: javascript es6 quizes
const KEY = 'white_rabbit';
if (true) {
const KEY = 'ginger_rabbit';
}
console.log(KEY);
Example 2: javascript es6 quizes
let x = 42;
if (true) {
let x = 1337;
}
console.log(x);
const KEY = 'white_rabbit';
if (true) {
const KEY = 'ginger_rabbit';
}
console.log(KEY);
let x = 42;
if (true) {
let x = 1337;
}
console.log(x);