Engrain by ByteRush

FND.09.05 BeginnerCore — asked often

Arrays

Comes up in: Recruiter screen, DSA

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

  • creating, indexing, length
  • push/pop/shift/unshift
  • slice vs splice
  • map, filter, reduce, find, some, every, includes, sort (with comparator!)
  • mutating vs non-mutating

Words you will know

arrayindexcallbackmutation

What you will practise

  • shopping list operations
  • sort numbers trap

Interview questions this answers

  • Why does [10, 1, 2].sort() give [1, 10, 2]?