const people = ["Scooby", "Velma", "Daphne", "Shaggy", "Fred"];
for (let i=0 ;i<people.length ;i++){
console.log(i.toUpperCase());
}
The code has no problem without the uppercasing, but when i place toUppercase (method), Javascript has a problem with it, and i don’t understand why …
Thanks