Sunday, March 5, 2017

Arrow functions in java script


One parameters syntax





  • Implicit return, we do not need to use return statement
  • If we are using a code block we have to use the return statement
  • we may put parameters and parenthesis as we are customed to .( Some consider this as a best practice)

Two parameters syntax 

  • Parameters in this case are required to have parenthesis around them



No comments:

Post a Comment