Page MenuHomePhorge

hoist.js
No OneTemporary

Size
483 B
Referenced Files
None
Subscribers
None

hoist.js

function hoist1() {
b(); // b is hoisted from below
function b() {
console.log('b');
}
}
function hoist2() {
b(); // b exists but is undefined
var b = function b() {
console.log('b');
};
}
function hoist3() {
b(); // b does not exist
let b = function b() {
console.log('b');
};
}
try {
hoist1();
} catch (err) {
console.log(err);
}
try {
hoist2();
} catch (err) {
console.log(err);
}
try {
hoist3();
} catch (err) {
console.log(err);
}

File Metadata

Mime Type
text/plain
Expires
Wed, Jun 17, 12:03 PM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
518292
Default Alt Text
hoist.js (483 B)

Event Timeline