Javascript Exercises | Hack Reactor Bootcamp Prep | Module1 | 054_getElementsAfter

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

In this video, I solve the exercise 054_getElementsAfter. The 054_getElementsAfter has two parameters, array and n. This function selects and returns specific elements of a given array by using the splice () method. The splice() method adds/removes items to/from an array, and returns the removed item(s) (Resource, w3schools).

To understanding this exercise, one needs to have knowledge of the following:

-Functions
-Arguments and parameters
-Return statement
-Arrays
-How to select element in an index of an array
-splice () method

Connect with me:

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