Skip to content

Instantly share code, notes, and snippets.

@pjcodesjs
Created May 11, 2021 05:05
Show Gist options
  • Save pjcodesjs/f45d563231046a26b23e85e3fa40ce55 to your computer and use it in GitHub Desktop.
Save pjcodesjs/f45d563231046a26b23e85e3fa40ce55 to your computer and use it in GitHub Desktop.
// 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');
@pjcodesjs
Copy link
Author

Arrow functions example.

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