Closed ghost closed 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 ===================
Can anybody help me please? thx
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