In simple terms in the field of programming the term “data type” refers to the classification that defines the kind of value a variable is and what kind of mathematical, relationship, or logical operation is executed without error.
i.e data type Simply specify the type of data that will be saved and altered in this program.
Also Read: What Is CSS Explain It? And CSS Example? | Types Of CSS?
- Primitive data type.
- Non-primitive (reference) data type.
You have to specify the data type here. var‘ is required to be used. It can hold any type of value like strings, numbers, etc. for example:
var a=100; //holding number var b="TopFaida"; //holding string
|String||It represents the sequence of characters. Like|
|Number||It represents numeric values such as “100”|
|Boolean||This boolean value is false or represents true.|
|Undefined||Represents an undefined value.|
|Null||It represents a null value ie no value at all|
Also Read: How To Add CSS In HTML?
The non-primitive data types are as follows:
|Object||this example represents through which members can be accessed.|
|Array||It represents the similar values of a group.|
|RegExp||This regular expression represents.|
Also Read: Which Is The Correct CSS Syntax?
Data type Simply specifies the type of data that will be saved and altered in this program.
Modern computer languages have five types of data: Integral, floating Point Character, String of Character, and composite types, each with distinct subtypes that are defined within every broad classification.
Helpful information. Fortunate me I discovered your site accidentally, and I am surprised why this accident did not came about in advance! I bookmarked it.