Created
May 11, 2021 05:05
-
-
Save pjcodesjs/f45d563231046a26b23e85e3fa40ce55 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
// REGULAR FUNCTION DECLARATION | |
function my_cats(a,b,c) { | |
return `My cats names are: ${a}, ${b} & ${c}`; | |
} | |
my_cats('Tom', 'Marty', 'Jimmy'); | |
// ARROW FUNCTION | |
let my_cats = (a,b,c) => { | |
return `My cats names are: ${a}, ${b} & ${c}`; | |
}; | |
my_cats('Tom', 'Marty', 'Jimmy'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Arrow functions example.