File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
1-js/02-first-steps/07-operators/1-increment-order Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11
2- The answer is :
2+ Jawabannya adalah :
33
44- ` a = 2 `
55- ` b = 2 `
@@ -9,10 +9,10 @@ The answer is:
99``` js run no-beautify
1010let a = 1 , b = 1 ;
1111
12- alert ( ++ a ); // 2, prefix form returns the new value
13- alert ( b++ ); // 1, postfix form returns the old value
12+ alert ( ++ a ); // 2, bentuk prefix mengembalikan nilainya
13+ alert ( b++ ); // 1, bentuk postfix mengembalikan nilai lamanya
1414
15- alert ( a ); // 2, incremented once
16- alert ( b ); // 2, incremented once
15+ alert ( a ); // 2, diinkremen sekali
16+ alert ( b ); // 2, diinkremen sekali
1717```
1818
Original file line number Diff line number Diff line change 1- importance : 5
1+ kepentingan : 5
22
33---
44
5- # The postfix and prefix forms
5+ # Bentuk postfix dan prefix
66
7- What are the final values of all variables ` a ` , ` b ` , ` c ` and ` d ` after the code below ?
7+ Berapa nilai final dari semua variabel ` a ` , ` b ` , ` c ` dan ` d ` setelah kode berikut ?
88
99``` js
1010let a = 1 , b = 1 ;
You can’t perform that action at this time.
0 commit comments