Created
August 16, 2023 15:45
-
-
Save suhailgupta03/f51882f4c00a01752e4c14efe88a6cfd to your computer and use it in GitHub Desktop.
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
// ES6 using arrow functions | |
let myFunctionVersion2 = (a, b) => 100 | |
/** | |
* Another way of writing the same function is | |
* let myFunctionVersion2 = (a, b) => { | |
* return 100 | |
* } | |
* | |
* In ES5: | |
* function myFunctionVersion2(a, b) { | |
* return 100 | |
* } | |
*/ | |
console.log(myFunctionVersion2(2234234, 300)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Link to first example: https://gist.github.com/suhailgupta03/043d4959744fa534f6e51d70c0db5581