Engrain by ByteRush

JS.07 5 concepts · 4 ready

Functions in depth

Use higher-order functions, currying, memoization, recursion and generators confidently.

  1. JS.07.01Higher-order functions and compositionCoreJunior9 min
  2. JS.07.02Currying and partial applicationCoreMid-level10 min
  3. JS.07.03MemoizationCoreMid-level10 min
  4. JS.07.04Recursion and the stackCoreJunior10 min
  5. JS.07.05Iterators and generatorsMid-levelBeing written

Interview questions in this module

  1. What is currying? Implement curry.
  2. What is memoization? What are its risks?
  3. What is a higher-order function? Give examples from the standard library.
  4. Does JavaScript have tail-call optimisation?
  5. What is a generator? Give a real use case.
  6. What is the iterator protocol?
  7. How would you memoize an async function safely?