Last active
December 8, 2018 22:09
-
-
Save lmuzquiz/7f5f21c24359159dec50f90fececb8f1 to your computer and use it in GitHub Desktop.
Ejemplos básicos de función de Javascript 1
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
// nota como en este ejemplo todo el código que | |
// ejecuta la función llamada saludar | |
// está entre dos brackets {} | |
function saludar() { | |
var saludo = "Hola!" | |
console.log(saludo); | |
} | |
// esta última linea ya no forma parte | |
// de la función, pero sirve para invocarla | |
saludar(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment