JavaScript Exercises | Hack Reactor's Bootcamp Prep | Module 1 | 041_addToFront

preview_player
Показать описание
Hack Reactor Bootcamp Prep
Module 1 JavaScript Exercises
Exercise 41 of 145

In this video, I solve the exercise 041_addToFront. The function addToFront has two parameters, arr and element. It returns an array (arr) passed as an argument after one element is added to the front of the array, the 0 index, using the unshift method.

-Functions
-Arguments and parameters
-Return statement
-Arrays
-How to access element of an array
-unshift () method

Connect with me:

Рекомендации по теме