mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-16 19:54:34 +02:00
fix: style miss&&small content (#578)
This commit is contained in:
@@ -61,7 +61,7 @@ if (currentMoney >= laptopPrice){
|
||||
}
|
||||
```
|
||||
|
||||
## IF..Else Statement
|
||||
## If..Else Statement
|
||||
|
||||
The `else` statement will run the code in between its blocks when the condition is false. It's optional with an `if` statement.
|
||||
|
||||
|
@@ -62,7 +62,7 @@ if (currentMoney >= laptopPrice){
|
||||
|
||||
## If..Else 语句
|
||||
|
||||
`else` 语句会在条件为假的情况下运行它块中的代码。它后面可以跟上一个 `if` 语句。
|
||||
`else` 语句会在条件为假的情况下运行它块中的代码。它可以跟在一个 `if` 语句后面。
|
||||
|
||||
```javascript
|
||||
let currentMoney;
|
||||
|
Reference in New Issue
Block a user