
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
What is the concept of Data Types in JavaScript?
JavaScript allows you to work with three primitive data types −
- Numbers, eg. 123, 120.50 etc
- Strings of text e.g. "This text string" etc.
- Boolean e.g. true or false.
JavaScript also defines two trivial data types, null and undefined, each of which defines only a single value. In addition to these primitive data types, JavaScript supports a composite data type known as object. We will cover objects in detail in a separate chapter.
JavaScript does not make a distinction between integer values and floating-point values. All numbers in JavaScript are represented as floating-point values. JavaScript represents numbers using the 64-bit floating-point format defined by the IEEE 754 standard.
- Related Articles
- Explore the concept of JavaScript Function Scope and different types of JavaScript Functions
- What are primitive data types in JavaScript?
- What are Complex Data types in JavaScript?
- What are JavaScript data types and data structures?
- What is Elementary Data Types?
- What is the techniques of Discretization and Concept Hierarchy Generation for Categorical Data?
- What is the concept of thread?
- What is the concept of Divestiture?
- What is the concept of hedging?
- Count the number of data types in an array - JavaScript
- Communism (concept, types, example)
- What are Primitive and Non-Primitive Data Types in JavaScript?
- What are the types of data integrity?
- What are the differences between JavaScript Primitive Data Types and Objects?
- What are the data types, value types and reference types in C#?

Advertisements