Solution: Musketeers

Let's see the solution to the Musketeers challenge.

We'll cover the following...

Solution

Here, we add a string to the musketeers array using the push() method and display the last two strings in the array using the splice() method.

Let’s have a look at the solution code below:

Access this course and 1400+ top-rated courses and projects.