I would like to ask a theoretical question. If I have, for example, the following C# code in Page_load:
cars = new carsModel.carsEntities();
var mftQuery =
a) C#'s var lets you avoid writing an explicit type upon variable declaration. This makes your code more compact, also sometimes the type of the expression on the right side of the declaration is complicated and in the same time you are not interested what the actual type is.
b) Javascript's var is like C#'s dynamic. It lets you declare a variable but you can change its type.
var i = 1;
i = "foo"; // legal in Javascript, illegal in C#