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:

Get hands-on with 1400+ tech skills courses.