mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-10 08:44:23 +02:00
Removed ` in line 128
This commit is contained in:
@@ -125,7 +125,7 @@ if (!condition) {
|
|||||||
`if...else` isn't the only way to express decision logic. You can also use something called a ternary operator. The syntax for it looks like this:
|
`if...else` isn't the only way to express decision logic. You can also use something called a ternary operator. The syntax for it looks like this:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
let variable = condition ? <return this if true> : <return this if false>;
|
let variable = condition ? <return this if true> : <return this if false>
|
||||||
```
|
```
|
||||||
|
|
||||||
Below is a more tangible example:
|
Below is a more tangible example:
|
||||||
|
Reference in New Issue
Block a user