From what I experienced, it is not possible to declare variables while evaluating expressions.
Meaning :
var $foo = 2; //ok
var $foo = 1 + 1; //syntax error
I don't know why and find it quite annoying.
Perhaps it has historical reasons. Who knows.
1 to 3 of 3