PRIMITIVE DATA oTYPES IN JAVASCRIPT
JavaScript Data Types
JavaScript has several data types, including:
Primitive Data Types:
Number: Represents numeric values.
String: Represents textual data.
Boolean: Represents either true or false.
Null: Represents the intentional absence of any object value.
Undefined: Represents an uninitialized variable.
Special Values:
NaN: Represents a "Not-a-Number" value.
Infinity: Represents positive infinity.
-Infinity: Represents negative infinity.
Composite Data Types:
Object: A collection of key-value pairs, where values can be of any type.
Array: An ordered list of values.
Function: A reusable block of code.
Derived Data Types:
Date: Represents dates and times.
RegExp (Regular Expression): Represents patterns in strings.
These data types enable JavaScript to handle a wide range of information and perform various operations.
Comments
Post a Comment