JS
challenger
Home
JavaScript Practice
JavaScript arrays
Remove first n elements of an array
Remove first n elements of an array
Write a function that takes an array (a) as argument. Remove the first 3 elements of 'a'. Return the result
reset
function myFunction(a) {
return
} console.log(myFunction([1,2,3,4])) // expected: [4] console.log(myFunction([5,4,3,2,1,0])) // expected: [2,1,0] console.log(myFunction([99,1,1])) // expected: []
JavaScript
Run Code
Console