Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // in JavaScript arrow functions looks like this
- // add numbers and return the result
- const addSomeNumbers = (a, b) => a + b;
- // echo out a message and return the input parameter
- const doTheThing = theThing => {
- console.log(`I'm doing ${theThing}`);
- return theThing;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement