Created
February 28, 2017 18:04
-
-
Save ivandevp/052eb84c8f2007de733deaa82b62a6de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hoisting | |
// var saludo; | |
// var nombre; | |
// var numero; | |
// console.log(typeof saludo); | |
// console.log(saludo("Ivan")); | |
// Function Expression | |
// -------- ---------- | |
// Función como valor (Function as value) | |
saludo = function (nombre) { | |
return "Hola " + nombre + "! :)"; | |
}; | |
// nombre = "sahgvbsajkldm"; | |
// numero = 123456; | |
// console.log(saludo("Ivan")); | |
console.log(typeof saludo); | |
console.log(saludo("Ivan")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment