Master AI & Build your First Coding Portfolio with SkillReactor | Sign Up Now

Lesson 6 - Basic String Operations

6.1 Length

You can use the length property to find the length of a string.

let myStr = "Hello, world!";
console.log(myStr.length);