Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var sayHello = foo('Hello world.');
- // 'foo' will be hoisted to the top
- // and the alert will trigger
- function foo(str) {
- alert(str);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement