Skip to content
Open
Changes from all 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
2 changes: 2 additions & 0 deletions docs/06-boolean/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ document.write(true || false); // true
let isHunterStrong = false;
let isMonsterBig = true;
let shouldFight = isHunterStrong || !isMonsterBig; // false
document.write(shouldFight);
```

## 比較演算子
Expand Down Expand Up @@ -91,6 +92,7 @@ document.write(age === 13); // false
let age = 12;
let height = 150;
let canRideRollerCoasters = age >= 10 && height >= 120; // true
document.write(canRideRollerCoasters);
```

:::tip
Expand Down