offline version v3


menu

Array parts in JavaScript

slice

Given the following array:

[1, 2, 3, 4, 5]

Make this array into the following:

[1, 2, 3]

Given the following array:

[1, 2, 3, 4, 5]

Using this array, store the following array in a new variable:

[4, 5]
enru