-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathday6Operators
More file actions
37 lines (19 loc) · 758 Bytes
/
day6Operators
File metadata and controls
37 lines (19 loc) · 758 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
const a = 10;
const b = 12;
const c = '10';
console.log('addition of a and b',a+b);
console.log('substraction of a and b',a-b);
console.log('multiplication of a and b',a*b);
console.log('division of a and b', a/b);
console.log('division of a and b with reminder',a%b);
console.log('uniray plus',a++);
console.log('uniray minus',a--);
console.log('uniray plus plus', ++a);
console.log('uniray minus m inus',--a);
// comaprision
console.log('compare values of a and c',a===c);
console.log('euqualent values of a and c', a==c);
const month = ["January","Febrauary","March","April","May","June","July","August","September","October","November","December"];
const ascorder =newDate();
let name = month[ascorder.getMonth()]
console.log ("month")