2
2

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 5 years have passed since last update.

JavaScriptでよく使われる特別な値

Last updated at Posted at 2017-11-06

JavaScriptには、いくつかの特別な値が存在します。
よく使うものを、以下にまとめてみる。

表記 意味 説明
true 真      boolean型
false 偽      boolean型
null 値なし 変数の中身が空であることを示す
undefined 未定義 オブジェクトの『存在しないプロパティ』 などにアクセスした際に戻る値
NaN 数値でない 計算式に文字列が紛れ込んでいた際などに戻る値
Infinity 無限 計算結果が極端に大きな場合に戻る値
2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?