function test() {
try {
console.log(y);
} catch (e) {
return e.constructor.name;
}
}
let result1 = test();
let y = 'hoisted';
console.log(result1, typeof y, y); Post #3428
2.2K
CHALLENGE
- 🔥 5
- 👍 1