JavaScript Data Types

JavaScript supports the following data types::

Number: JavaScript supports both integer and floating-point numbers. Examples are 3 and 3.33.

String: Examples are “Joey JavaScript” and “Today is Monday.”

Boolean: Represents true and false values.

null: Has no value. It means the variable holds nothing.

undefined: Used to check for the existence of a variable or whether the variable has been assigned a value yet.

Leave a Reply