-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdataTypes.js
More file actions
80 lines (46 loc) · 1.65 KB
/
dataTypes.js
File metadata and controls
80 lines (46 loc) · 1.65 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
"use strict"; // treat all Js Code as newer version
// alert() // we are useing node js ,not browser
console.log("Data Types");
let name ="Md Mohsin Haider";
let age = 22;
let isLoggedIn= false;
// number => to power 53;
// BigInt
// String =" "
// Boolean = true/false
// null=> standalone value / specel type its blank
// undefined =>
// Symbol => unique
// boject
// typeof
// console.table([age,name,isLoggedIn]);
// console.log(typeof null); // object
// console.log(typeof undefined); // undefined
// 🟥🟥🟥🟥🟥🟥🟥🟥🏳️🏳️🏳️🏳️🏳️🏳️🏳️🏳️🏳️🟥🟥🟥🟥Primitiv
// 7 types : String, Number ,boolean ,null ,undefined, Symbole, BigInt
// const score:number=100 Type script
// const score=100; // in JavaScript
// const id =Symbol('123');
// const anotherId= Symbol('123');
// console.log(id === anotherId); //false
// console.log(id == anotherId); //false
// const bigNumber= 123456789097654323456789875687647678363853686863863863n; // how to use
// Reference (Non prrimitive)
// Array,Objects, Funtion
// const hero= ["shaktiman","naagraj","doga"]; // Array
// let myObject={
// name:"md mohsin haider",
// age:22,
// }
// const myFunction = function (){
// console.log("Hello world");
// }
// console.log(typeof(Object));
// 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
// Stack (Primitive),
// Heap (Reference (Non prrimitive))
let mychannel = "RedCode";
let anothername = mychannel;
anothername="chaiaurcode";
// console.log(mychannel);
// console.log(anothername);