diff --git a/docs/06-boolean/index.mdx b/docs/06-boolean/index.mdx index 85a4943..3c8adb5 100644 --- a/docs/06-boolean/index.mdx +++ b/docs/06-boolean/index.mdx @@ -51,6 +51,7 @@ document.write(true || false); // true let isHunterStrong = false; let isMonsterBig = true; let shouldFight = isHunterStrong || !isMonsterBig; // false +document.write(shouldFight); ``` ## 比較演算子 @@ -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