Advertisement
sissou123

Untitled

Mar 16th, 2022
678
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. Use Arrow Functions to Write Concise Anonymous Functions
  3. In JavaScript, we often don't need to name our functions, especially when passing a function as an argument to another function. Instead, we create inline functions. We don't need to name these functions because we do not reuse them anywhere else.
  4.  
  5. To achieve this, we often use the following syntax:
  6.  
  7. const myFunc = function() {
  8.   const myVar = "value";
  9.   return myVar;
  10. }
  11. for more:http://besturl.link/84hgr2K
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement