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,
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
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.