Must you define a data type when declaring a variable in JavaScript?
3 Answers
No, in Javascript variables are defined by simply using the var keyword followed by your variable name.
Example
var intVariable = 3;
var stringVariable = "Dog";
You can read more about javascript variables here
var myVariable