You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
teja463 edited this page Mar 20, 2017
·
2 revisions
Varialbes
Variables have different data types. There are different datat types a variable can contain
varx=10;//Number typevary='Hello'//String type
String
Number
Boolean
Array
Object
Data types
The latest ECMAScript standard defines seven data types:
Dynamic typing
JavaScript is a loosely typed or a dynamic language. That means you don't have to declare the type of a variable ahead of time. The type will get determined automatically while the program is being processed. That also means that you can have the same variable as different types
Six Primitive data types :
All primitive data types are immutable. Object is not primitive so it is mutable.