Level 1M5Lesson 5.2

beginner40 minby DevFox

Arrow functions

Write the rules from lesson 4.3 the long way: an arrow function with typed parameters and a return type, a short body that gives its value back by itself or a body in braces with return, kept in a box and called by its name. See map call an arrow once per item, learn why a rule inside map needs no types, and when to write an arrow rather than a function declaration.

  • Fundamentals
  • TypeScript
Arrow functions. Read this lesson at .