Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. // in JavaScript arrow functions looks like this
  2.  
  3. // add numbers and return the result
  4. const addSomeNumbers = (a, b) => a + b;
  5.  
  6. // echo out a message and return the input parameter
  7. const doTheThing = theThing => {
  8. console.log(`I'm doing ${theThing}`);
  9. return theThing;
  10. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement