-
Notifications
You must be signed in to change notification settings - Fork 0
/
datatype.js
41 lines (26 loc) · 968 Bytes
/
datatype.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
"use strict"; //treat all javacript code as a new version
// alert("hello") we are using node js not browers
console.log(3+5); console.log("ironman");
// code readability should be high
let name="ironman" // its a string datatype
let age = 195 // its a integer datatype
let isloggeIn = true // its boolean datatype
// there are more datatype
//premitive datatype=>
//number =>2 to 53
// bigint => for use big number in javascript in trading or stock market
// boolean=> true/false
// null => standlone value is empaty
// there are different in null and undefined datatype
// undefined => is value not defined
// symbol => for find uniqueness we use symbole in react and more
//non- premitive datatype/ reference datatype
// object //array // functions
console.log(typeof undefined); // undefined
console.log(typeof null); // Object
/* if (typeof 34 == typeof 35346) {
console.log("right")
} else {
console.log("wrong")
} */
console.log();