Skip to content

Instantly share code, notes, and snippets.

@suhailgupta03
Created August 16, 2023 15:45
Show Gist options
  • Save suhailgupta03/f51882f4c00a01752e4c14efe88a6cfd to your computer and use it in GitHub Desktop.
Save suhailgupta03/f51882f4c00a01752e4c14efe88a6cfd to your computer and use it in GitHub Desktop.
// 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))
@suhailgupta03
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment