0PricingLogin
Javascript for Kids · Lesson

How Long Is a Word?

Count the letters with length.

How Long is a Word? 📏

Hello, measuring master! 🌟 Today we count how many letters are in a word.

We use a magic helper called .length! 🔢

console.log("cat".length)

The .length Helper 🪄

Add .length after a string and it counts the letters!

"cat".length is 3 because c-a-t is 3 letters. 🐱

console.log("dog".length)

All lessons in this course

  1. What Is a String?
  2. Joining Words Together
  3. How Long Is a Word?
  4. Making Words SHOUT or whisper
← Back to Javascript for Kids