Mega Code Archive
Categories
/
JavaScript Tutorial
/
Number Data Type
Variables are loosely typed
variables in JavaScript are not given a specific type. Each variable is defined using the var operator and can be initialized with any value. var color = "red"; var num = 25; var visible = true;