Language Basics JavaScript Tutorial

A variable can be initialized with a string value, and later on be set to a number value.

var test = "hi";
alert(test);
test = 55;
alert(test);