Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Soy el global scope.
- var name = “Juancito”;
- function sayHello(str) {
- // Soy una función que crea su propio scope.
- var hello = “Hola “ + str;
- return hello;
- }
- sayHello(name); // "Hola Juansito"
Add Comment
Please, Sign In to add comment