Last active
October 14, 2017 14:36
-
-
Save Fouzyyyy/49e6267886a6b6db139d4a7ee57184e4 to your computer and use it in GitHub Desktop.
An arrow function is a function expression!
This file contains hidden or 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
// We can do this | |
let bar = (arg) => { | |
console.log('hi ' + arg + ', nice to meet you!'); | |
}; | |
// But we can't do that! | |
function bar(arg) => { | |
console.log('hi ' + arg + ', nice to meet you!'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment