It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

use of braces in javascript

use of braces in javascript

Postby binsky on Sat Jun 12, 2010 5:45 pm

sorry to ask such a simple question, but if a while statement was used without braces what would happen?

many thanks
binsky
 
Posts: 1
Joined: Sat Jun 12, 2010 5:43 pm

Re: use of braces in javascript

Postby Logician on Fri Jun 18, 2010 1:51 am

Only the first statement following the while() condition would be executed in the loop.
Logician
 
Posts: 20
Joined: Tue Jun 12, 2007 3:43 am
Location: U.K.


Who is online

Users browsing this forum: No registered users and 6 guests