Can I select multiple variables in a single Javascript command?
Does Javascript have a built-开发者_如何学JAVAin 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?
x = y = n = a = 0;
精彩评论