Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- print(fn1);
- print(fn2);
- function fn1 () {} // FunctionDeclarations
- (function fn2 () {}) // FunctionExpression
- } catch (e) {
- print(e); // => ReferenceError: Can't find variable: fn2
- }
Add Comment
Please, Sign In to add comment