Mega Code Archive

 
Categories / JavaScript Tutorial / Language Basics
 

Variables can hold different types of values at different times

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);