Anki flashcards

1. What does Array#splice accept as arguments?


2. What do the Array#slice and String#slice methods accept as arguments?


3. Describe what the Array#push method does.


4. Name the array method that removes the last element from an array (mutating the array) and returns that removed element.


5. Name the array method that removes the first element of an array (mutating the array) and returns the removed element.


6. Describe what the Array#unshift method does.


7. Describe what the String#split method does.


8. Describe what the Array#join method does.


9. What does the term “mutability” mean in programming?


10. Identify which of the following JavaScript data types are mutable: number, string, boolean, array