recently i've been looking at some js scripts and notice that there are times when a conditional statement looks as follows:

Code:
if (condition) somevar=value
now my question is, isn't the correct pattern like this?

Code:
if (condition) {somevar=value}
is it OK to ommit the curly braces after an if statement?