The code is:
const animal = 'cat';
for (let i = 0; i < animal.length; i++) {
console.log(animal[i]);
for (let j = 1; j < 4; j++) {
console.log(j);
}
}
And the answer is:
c 1 2 3 a 1 2 3 t 1 2 3
I thought the answer was the following and can’t figure out why it isn’t:
`
1 cat 2 cat 3 cat
`