MDN’s new design is in Beta! A sneak peek: https://blog.mozilla.org/opendesign/mdns-new-design-beta/

Type  (or data type) is a characteristic of a value affecting what kind of data it can store — for example in JavaScript a Boolean only holds true/false values, whereas a String holds text strings, a Number holds numbers of any kind, etc.

A value's data type also affects which operations are valid on that value. For example, an integer can be multiplied by an integer, but not by a string.

Learn more

General knowledge

Document Tags and Contributors

 Contributors to this page: zakyrie, chrisdavidmills, hbloomer, Andrew_Pfeiffer
 Last updated by: zakyrie,