SCRIPT:
Script is runs automatically and it is does not need full compilation
WHY JAVASCRIPT CALLED JAVASCRIPT?
Javascript original name was MOCHA,after changed to livescript.It was created in 1995 by Brendan Eich at Netscape.Later renamed javascript.At that time, Java was very popular.So Netscape used the name “JavaScript” as a marketing strategy to attract developers.
DATATYPES:
It's define what kind of value a variable can hold and how value can be used it.
The Role of Data Types:
1.Store data correctly
2.Perform Valid operations
3.Avoid errors
TYPES OF DATATYPES IN JAVASCRIPT:
They are two types of datatypes.
1.PRIMITIVE Data Types
2.NON-PRIMITIVE Data Types
1.PRIMITIVE Data Types
This is basic type, they Store single simple values.
Primitive data types are seven types.
1.String
( means text)
2.Number
( means numbers)
3.Boolean
( means true or false)
4.Undefined
( means no value)
5.Null
( means empty value)
6.BigInt
( means large number)
7.Symbol
( means unique identifier)
2.NON-PRIMITIVE Data Types
This is reference type, they Store multiple values complex data.
1.Object
Special object
- Array
- Function
Top comments (0)