Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7535257
hoist.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
483 B
Referenced Files
None
Subscribers
None
hoist.js
View Options
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
Details
Attached
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)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment