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 1 year has passed since last update.

プリザンターのスクリプトで用いるJavaScriptの演算子について

Posted at

はじめに

プリザンターでスクリプト機能やサーバースクリプト機能を使うことがしばしばあります。その際、演算子を覚えきれないので、この記事にまとめようと思います。といっても、URLを乗っけるだけですが・・・

参考にしているURL

等値演算子と同値演算子

等値演算子(==)は型が異なる場合には型の変換を試みてから比較を行うそうです。
https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Operators/Equality
同値演算子(===)は型が異なる場合、常に異なるものと判断するそうです。
https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Operators/Strict_equality

要約すると、===のほうが厳密に比較してくれるのでしょう(だから、名前が厳密等価演算子なのかな・・・?)

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?