@@ -18,11 +18,11 @@ import ViewSource from "@site/src/components/ViewSource";
1818<p ><Term type =" javascriptBoolean " >論理値</Term >に対して適用できる<Term type =" javascriptOperator " >演算子</Term >が存在します。</p >
1919
2020``` javascript
21- let isMonsterBig = true ;
22- let isMonsterSmall = ! true ; // false
23- let isHunterStrong = false ;
24- let shouldEscape = ! isHunterStrong && isMonsterBig; // true
25- let shouldFight = isHunterStrong || isMonsterSmall; // false
21+ const isMonsterBig = true ;
22+ const isMonsterSmall = ! true ; // false
23+ const isHunterStrong = false ;
24+ const shouldEscape = ! isHunterStrong && isMonsterBig; // true
25+ const shouldFight = isHunterStrong || isMonsterSmall; // false
2626```
2727
2828詳細は以下の通りです。 ` ! ` のみが作用する対象を 1 つしかとらないことに注意してください。
@@ -38,12 +38,12 @@ let shouldFight = isHunterStrong || isMonsterSmall; // false
3838比較<Term type =" javascriptOperator " >演算子</Term >は、複数の<Term type =" javascriptValue " >値</Term >を比較して、単一の<Term type =" javascriptBoolean " >論理値</Term >を得ます。
3939
4040``` javascript
41- let age = 15 ;
42- let height = 155 ;
43- let isFourteen = age === 14 ; // false
44- let isNotFourteen = age !== 14 ; // true
45- let isChild = age < 20 ; // true
46- let canRideRollerCoasters = age >= 10 && height >= 140 ; // true
41+ const age = 15 ;
42+ const height = 155 ;
43+ const isFourteen = age === 14 ; // false
44+ const isNotFourteen = age !== 14 ; // true
45+ const isChild = age < 20 ; // true
46+ const canRideRollerCoasters = age >= 10 && height >= 140 ; // true
4747```
4848
4949各<Term type =" javascriptOperator " >演算子</Term >の詳細は、次の通りです。
0 commit comments