...

View Full Version : Don't know what went wrong ..just simple



slen
06-18-2012, 04:18 PM
I have a question ... I wanna do if and else in javascript ...simple eh?
But my problem is ...
It doesn't go into the statement ..
and when I put else .. it gave me syntax error too ...
below is the thing I wanna do


If (isNaN(thenumber))
window.alert(isNaN(thenumber));


when i comment the If ...
the window alert display true ...but why it didn't just go in ...
another thing is the when I wanna do else..didn't know why the editor giving me syntax error for the "else" ...
I tried many ways to do it even putting the {} ..
anyone has any idea?
the editor I am using is Aptana Studio 3
Thanks ...
hope to get some ideas from anyone ..

WolfShade
06-18-2012, 04:22 PM
JavaScript is case-sensitive.

if(isNaN(thenumber))



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum