Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // function statement
- function hello(name) {
- console.log("Hello " + name);
- }
- hello("Joe");
- // immediately invoked function expression
- var helloFunction = function(name) {
- console.log("Hello " + name);
- }("Tom");
Add Comment
Please, Sign In to add comment