Animate Your Name

Nice job! Next let's look at Boolean expressions. A Boolean expression is either true or false.

For example, comparing two numbers returns a true or false result:

  • 23 > 10 is true
  • 5 < 4 is false

Let's compare two numbers to return a true result:

  1. First, write the string "I'm coding like a champ".
  2. Next, find the length of the string (like you did here).
  3. Then, compare the string's length to see if it is greater than 10.

If you want to check your code, click "Stuck? Get a hint!" below.

Stuck? Get a hint! Hint
Get live, fast support from Codecademy Advisors when you get stuck. Learn more.

You can use "string".length to find the number of characters in your string.

Your code should look something like this:

document.write( "I'm coding like a champ!".length > 10 );
View Preview