Type is a characteristic of a {{glossary("value")}} affecting which operations on that value are valid. For example, an integer can be subtracted from an integer, but not from a string.
Revision 787010 of Type
Revision Information
- Revision slug: Glossary/Type
- Revision title: Type
- Revision id: 787010
- Created:
- Creator: Andrew_Pfeiffer
- Is current revision? No
- Comment new entry
Tags:
Revision Content
Revision Source
<p><strong>Type</strong> is a characteristic of a {{glossary("value")}} affecting which operations on that value are valid. For example, an integer can be subtracted from an integer, but not from a string.</p> <h2>Learn more</h2> <h3>Learn about types</h3> <ul> <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures">Data types in JavaScript</a></li> </ul> <h3>General knowledge</h3> <ul> <li><a href="https://en.wikipedia.org/wiki/Data_type">Wikipedia article</a></li> </ul>