-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVar.js
More file actions
60 lines (30 loc) · 1015 Bytes
/
Var.js
File metadata and controls
60 lines (30 loc) · 1015 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
// // {variables}
// var myname = 'shubham'
// console.log(myname)
// // const myname = 'shubhamconst' cannot reasign var with diff const
// const myfirstname = 'shubham';
// console.log(myfirstname);
// // const myfirstname = 'shubham1'; cannot change data of const. (it will give you error)
// // boolean
// var ismale = true;
// console.log(ismale)
// console.log(typeof ismale)
// var isfemale = false;
// console.log(isfemale)
// console.log(typeof isfemale)
// // // null and undifined
// // var babygender = null;
// // console.log(babygender) // null gives you nothing it means nothing is asigned to this value
// var babygender = undefined;
// console.log(babygender) //gives you the value undefined and that is the difference between null and undefined
// maths api
let x1 = 3;
let y1 = 5; //(3, 5)
let x2 = 7;
let y2 = 8; //(7, 8)
let deltax = Math.pow(x2-x1, 2);
console.log(deltax);
let delta
// console.log(deltay);
// let sum = (deltay + deltax);
// console.log(sum)