Engrain by ByteRush

FND.09.04 BeginnerCore — asked often

Functions

Comes up in: Recruiter screen

This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.

What it covers

  • declaring and calling
  • parameters vs arguments
  • return values
  • default parameters
  • arrow functions
  • scope (block vs function, intro)
  • pure functions

Words you will know

functionparameterargumentreturn valuescope

What you will practise

  • write 6 small functions with tests

Interview questions this answers

  • What does map return? How is it different from forEach?