primitive types in js| js values

JavaScript Values:-

Basically In JavaScript values are of two categories.

1. Primitive Types
2. Reference Types

in this we will learn about primitive types..

Primitive Types:-

Number 
Boolean
String
Undefined  etc..



Number :-All the numbers are of Number type.

Boolean:- Boolean values are either true or false.

String:- String is a stream of characters. The String should be enclosed with Single quotes, Double quotes, or Backticks.

Undefined:- If a value is not assigned to the variable, then it takes undefined as its value. In JS,
                    undefined refers to the value that is not being assigned.

Comments