How to use var to define more than one variables in one line?

I’m using JavaScript.

This code can’t be compiled.

var a, b;

The error message is

You can’t, plus you don’t want to say “var a” anyway, you want to give it a type either explicitly or by supplying a value. (Well, you can do “var a : int; var b : int;” but that’s really two lines even if it’s physically written as a single line.)

–Eric

use arrays