JavaScript Data Types
JavaScript is loosely typed – it doesn’t care what the variables hold.
A variable could start off holding a number, then change to holding a character, a word, or anything else you want it to hold.
var temp="John Doe"; temp=123; console.log(temp);//123
 Data Types
Even though you don’t have to declare the data type up front, it’s still useful to know what types of data a variable can store, so…
View On WordPress











