tags:

views:

27

answers:

1

Does Javascript have a built-in syntax for selecting multiple variables?

Say I'd like to set a group of variables to equal 0.

Is there some way to combine

x = 0
y = 0
n = 0
a = 0 

and so on, into one command?

Or am I getting spoiled by jQuery and CSS-style object selection?

+2  A: 
x = y = n = a = 0;
lincolnk