Created
October 8, 2018 22:26
-
-
Save carlosvega20/28523bf605418ef43dcfd0b4f115c029 to your computer and use it in GitHub Desktop.
Arrow function
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
myFunc = () => { | |
var mensaje='hello World!'; | |
console.log(mensaje); | |
}; | |
//Can be also expressed as: | |
/* | |
function myFunc() { | |
var mensaje='hello World!'; | |
console.log(mensaje); | |
} | |
*/ | |
myFunc(); | |
// hello World! | |
consola = (mensaje) => console.log(mensaje); | |
consola('hello'); | |
// hello |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment