Coding Challenge: Musketeers
Test the concepts of the Arrays that you have learned so far.
We'll cover the following
Problem statement
Do the following:
- Create an array named
musketeers
containing values - “Athos”, “Porthos” and “Aramis” - Add the “D’Artagnan” value to the array
- Remove Aramis
💡 Did you know?
When an object is declared using
var
in JavaScript, it is automatically initialized as “undefined”. Test the run case below before adding your solution to confirm!
Coding exercise
Get hands-on with 1400+ tech skills courses.