A. Arrow function notes

Const /let add=(x,y)=>{} const/let add=(x,y)=>{}

  1. If there is only one parameter, omit the single parenthesis () eg:add=(x)=>{} instead add=x=>{}

  2. If there is only one line of function body, you can omit {} and return eg:add=(x,y)=>{return x+y} to add=(x,y)=>x+y

  3. A single line object. Eg :const add=(x,y)=>{return{value:x+y}} =>({value:x+y})