Arrow function
Basic syntax of arrow function
remove return statement
👉An implicit return is a way of returning a value from a function without using the return keyword.
👉This can be done by using arrow functions, which have a shorthand syntax that allows you to omit the return keyword.
NOTE: If you wrap under { } then you have to write return statement
Comments
Post a Comment