File tree Expand file tree Collapse file tree 5 files changed +153
-153
lines changed
1-js/02-first-steps/07-operators Expand file tree Collapse file tree 5 files changed +153
-153
lines changed Original file line number Diff line number Diff line change 11
2- The answer is :
2+ Відповідь :
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, префіксна форма повертає нове значення
13+ alert ( b++ ); // 1, постфіксна форма повертає старе значення
1414
15- alert ( a ); // 2, incremented once
16- alert ( b ); // 2, incremented once
15+ alert ( a ); // 2, збільшується один раз
16+ alert ( b ); // 2, збільшується один раз
1717```
1818
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ importance: 5
22
33---
44
5- # The postfix and prefix forms
5+ # Постфіксна та префіксна форми
66
7- What are the final values of all variables ` a ` , ` b ` , ` c ` and ` d ` after the code below ?
7+ Які кінцеві значення всіх змінних ` a ` , ` b ` , ` c ` та ` d ` після виконання коду нижче ?
88
99``` js
1010let a = 1 , b = 1 ;
Original file line number Diff line number Diff line change 1- The answer is :
1+ Відповідь :
22
3- - ` a = 4 ` (multiplied by 2)
4- - ` x = 5 ` (calculated as 1 + 4)
3+ - ` a = 4 ` (помножиться на 2)
4+ - ` x = 5 ` (обчислюється як 1 + 4)
55
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ importance: 3
22
33---
44
5- # Assignment result
5+ # Результат присвоєння
66
7- What are the values of ` a ` and ` x ` after the code below ?
7+ Які значення мають ` a ` та ` x ` після виконання коду нижче ?
88
99``` js
1010let a = 2 ;
You can’t perform that action at this time.
0 commit comments