Created
July 31, 2020 10:33
-
-
Save dnshko/fb6225eca11bd30eeb3ee692d92ad7d4 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
// JavaScript ES5 function | |
function getGreeting() { | |
return 'Welcome to JavaScript'; | |
} | |
// JavaScript ES6 arrow function with body | |
const getGreeting = () => { | |
return 'Welcome to JavaScript'; | |
} | |
// JavaScript ES6 arrow function without body and implicit return | |
const getGreeting = () => | |
'Welcome to JavaScript'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment