DEV Community

Discussion on: All you need to know about string in JavaScript 🧵

Collapse
 
letharpi profile image
Mumumu....

Nice article, but I see is wrong output, on the Character Method section.

console.log(`The character at index ${index} is ${txt.charAt(index)}`); 
// "The character at index 4 is r",
//  should be 
// "The character at index 4 is e" 
Collapse
 
yashints profile image
Yaser Adel Mehraban

Thanks for pointing that out, fixed