View Single Post
Old 08-04-2012, 08:04 PM   PM User | #3
Logic Ali
Regular Coder

 
Logic Ali's Avatar
 
Join Date: Sep 2010
Location: London
Posts: 959
Thanks: 0
Thanked 198 Times in 193 Posts
Logic Ali will become famous soon enoughLogic Ali will become famous soon enough
Quote:
Originally Posted by Doubleflame View Post
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 );
Logic Ali is offline   Reply With Quote