Quote:
Originally Posted by Doubleflame
Im trying to start learning javascript in code academy. So I found out that I can't complete one task with booleans.
I will copy the task...
Write code that will say true if I'm coding like a champ! has more than 10 characters.
|
The result of a comparison is a boolean, so that is what you must show:
alert( "I'm coding like a champ!".length > 10 )
Or to save the result
Code:
var result = "I'm coding like a champ!".length > 10 ;
alert( result );