Lesson

Manipulate Arrays With Shift, freeCodeCamp Basic Javascript

Lesson Summary

In this challenge we learn how to utilize the shift function in Javascript. The shift function works similarly to the pop function. The difference is that the shift funciton targets the first element of an array and assigns it to a new variable.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required


Share: