Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Basic operators, maths#75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
henryonsoftware merged 3 commits intojavascript-tutorial:masterfromhenryonsoftware:08-operators
Feb 20, 2023
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@

The answer is:
Câu trả lời là:

- `a = 2`
- `b = 2`
Expand All@@ -9,10 +9,9 @@ The answer is:
```js run no-beautify
let a = 1, b = 1;

alert( ++a ); // 2,prefix form returns the new value
alert( b++ ); // 1,postfix form returns the old value
alert( ++a ); // 2,dạng tiền tố trả về giá trị mới
alert( b++ ); // 1,dạng hậu tố trả về giá trị cũ

alert( a ); // 2,incremented once
alert( b ); // 2,incremented once
alert( a ); // 2,tăng một lần
alert( b ); // 2,tăng một lần
```

View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,9 +2,9 @@ importance: 5

---

#The postfix and prefix forms
#Dạng tiền tố và hậu tố

What are the final values of all variables`a`, `b`, `c`and `d`after the codebelow?
Giá trị cuối cùng của tất cả các biến`a`,`b`, `c`và`d`ở đoạn codedưới đây là gì?

```js
let a = 1, b = 1;
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
The answer is:

- `a = 4` (multiplied by 2)
- `x = 5` (calculated as 1 + 4)
Câu trả lời là:

- `a = 4` (được nhân với 2)
- `x = 5` (được tính như 1 + 4)

View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,9 +2,9 @@ importance: 3

---

#Assignment result
#Kết quả gán

What are the values of`a`and `x`after the codebelow?
Giá trị của`a` `x`ở đoạn codedưới đây là gì?

```js
let a = 2;
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp