
- 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 are JavaScript data types and data structures?
Datatypes
One of the most fundamental characteristics of a programming language is the set of data types it supports. These are the type of values that can be represented and manipulated in a programming language.
JavaScript is a dynamic language and has some built-in data structures. Datatypes hold different values. There are two types of datatypes in JavaScript: Primitive and Non-Primitive. Primitive defines immutable values and was introduced recently by ECMAScript standard.
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 the object.
After datatypes, let us discuss about Objects
Objects
In JavaScript, objects are considered as a collection of properties. Identify properties using key values. It has two types:
Data Property
It associates a key with a value.
Accessor Property
It associates a key with accessor functions. This is to store a value.
- Related Articles
- What are compound data types and data structures in Python?
- What are primitive data types in JavaScript?
- What are Complex Data types in JavaScript?
- What are Primitive and Non-Primitive Data Types in JavaScript?
- Why JavaScript Data Types are Dynamic?
- What are the differences between JavaScript Primitive Data Types and Objects?
- Data objects and Structures
- What are the data types, value types and reference types in C#?
- What are different Perl Data Types?
- What are the specifications and operations of data structures in compiler design?
- Kernel Data Structures
- Kinetic Data Structures
- Abstract Data Type in Data Structures
- What are string and String data types in C#?
- What are the data structures in the Python pandas package?
