-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlec1.html
More file actions
59 lines (46 loc) · 996 Bytes
/
lec1.html
File metadata and controls
59 lines (46 loc) · 996 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
//Datatypes
// Number
//String
//Boolean
//undefined
//null
//Bigint
//Symbol
// let var const
// var => redeclaration and reintialization
// var a=5;
// var a=10;
// console.log(a);
// let c=10;
// c=5
// console.log(c);
// const b=6;
// console.log(b)
//undefined vs null
//undefined => value is not assigned
//null => value is declared but we cant get the what the value is
//not defined => value is declared but not assigned
//Camel Case => firstName ->this is standard method of declaration
// = == ===
//= -> assignment operator
//== -> compare value
//=== -> compare value as well as data type
var a=100
var b= a==100 //== comparison
console.log(b) // true
console.log(true == " ")//false
var c=2;
console.log(typeof(typeof(a)));
console.log();
</script>
</body>
</html>