0
0

More than 1 year has passed since last update.

Javascript18_演算ルール

Last updated at Posted at 2022-02-18

&& 
AND演算のルール:
1 二つの値ともtrueであれば、後者の値を返す
2 二つの値ともfalseであれば、前者の値を返す

例:
image.png

||
||演算のルール:
1 1つ目の値がtureであれば、1つ目の値を返す
2 1つ目の値がfalseであれば、2つ目の値を返す

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0