Skip to content

Instantly share code, notes, and snippets.

@pjcodesjs
Last active May 11, 2021 05:17
Show Gist options
  • Save pjcodesjs/191bf1beb551e5d6d656c4b1a93d1007 to your computer and use it in GitHub Desktop.
Save pjcodesjs/191bf1beb551e5d6d656c4b1a93d1007 to your computer and use it in GitHub Desktop.
// SINGLE LINE ARROW FUNCTIONS WITHOUT RETURN KEYWORD OR {}
let oldest_cat = c => `${c} is the oldest one`;
oldest_cat('Jimmy'); // Jimmy is the oldest one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment