workshopper / javascripting

Learn JavaScript by adventuring around in the terminal.
http://nodeschool.io
MIT License
2.86k stars 1.04k forks source link

'looping-through-arrays.js's solution' is incorrect? #325

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hello, the solution about the basic exercise of 'looping-through-arrays.js' seems incorrect.

Below the solution given:

const pets = ['cat','dog','rat']; for(let i = 0; i < pets.lenght; i++){ pets[i] = pets[i] + 's'; };
console.log(pets);

But it seems incorrect vause the 'javascripting program' gives me an error such as this:

Solution ===================

[ 'cats', 'dogs', 'rats' ]

Your Attempt ===================

[ 'cat', 'dog', 'rat' ]

Difference ===================

[ 'cats', 'dogs', 'rats' ]

Can anybody help me please? thx