0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

JavaScript,9,比較演算子,(===, >, <, >=, <=)初心者向け

Posted at

JS(JavaScript)で比較演算子(===, >, <, >=, <=)などの違いも紹介しています。

2 > 2 (f)
2 >= 2 (2も含んだ数字 true)
2 <= 2 (true)
2 == 2 (true あまり使わない)
2 === 2 (コッチを使う右と左が一緒 true)
2 != 1 (右と左が一緒ではない true)
2 > 1 && 3 <= 3 (&で繋げるもの全て右と左どちらも正しいか true)
2 > 1 || 3 <= 3 (||でまたいだものどれか正しいか true)

0
0
2

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?