What is Javascript?
Javascript is a scripting or programming language that allows you to implement the pages dynamically update content, control multimedia, animate images, and pretty much everything else. Javascript makes pages interactively among webpages and user. we can learn javascript into subparts.
data types:-
There are two data types
- Primitive data type
- Non-Primitive data type
Javascript is a dynamic type language, means you don't need to specify type of the variable because is is dynamically used by javascript engine. You need to use var , let here to specify the data type
example : - let name = "Your Name" // that variable holding String let age= 23 // it's holding number
Primitive data type:-
In JavaScript, a primitive is a data that is not an object and has no methods. There are 5 primitive data types
* Number
* String
* Boolean
* Undefined
* Null
The number represents the example of the value: - 100; The string represents the example of the character: - "Your Name"; Boolean represents the value either true or false; Undefined represents the Undefined values; Null represents the No value at all;
Non-Primitive data types :-
* Object
* Array