INDIA WIT
Programming In C sharp, Java Script, PHP, XML, XSL, HTML JOKES, LIFE, PUZZELS AND MORE
Thursday, April 14, 2011
How to use continue statement in Java Script:
<
script
language
="javascript">
i = 0;
n = 0;
while
(i < 5)
{
i++;
if
(i == 3)
//3 will not be in output
continue
;
n += i;
document.writeln(i+
"<br/>"
);
}
</
script
>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment