Quite simply, JavaScript variables do not have types. The values have types.
The language permits us to write code like this:
var foo = 42;
foo = 'the answer';
foo = function () {};
So it would be pointless to specify the type in a variable declaration, because the type is dictated by the variable’s value. This fairly common in “dynamic” languages.