Skip to content

Commit ee5e02f

Browse files
committed
add operators
1 parent 8a3b93d commit ee5e02f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

practice-examples/03-operators-exp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
let a = 45;
2+
let b = 4;
3+
4+
console.log('++a' , ++a) // it reflcets at a moment
5+
console.log('a++' , a++) // it reflcets in next step
6+
console.log('a =' , a)
7+
8+
console.log('--a' , --a) // it reflcets at a moment
9+
console.log('a--' , a--) // it reflcets in next step
10+
console.log('a =' , a)
11+
12+
/*
13+
++a 46
14+
a++ 46
15+
a = 47
16+
--a 46
17+
a-- 46
18+
a = 45 */

0 commit comments

Comments
 (0)