LoginSignup
1
0

More than 5 years have passed since last update.

[クイズ]javascriptと仲良くなるための一歩 第6話「ECMAScript第五版以前以後のundefined」

Last updated at Posted at 2017-07-22

ECMAScript第五版以前以後のundefined

undefined値は明示的に値を代入していない変数の初期値である。

第1問「ECMAScript第五版以前」

undefined = "abc"
undefined //=> ?

第2問「ECMAScript第五版以後」

undefined = "abc"
undefined //=> ?

:mouse:
:cow:
:tiger:
:rabbit:
:dragon_face:
:snake:
:horse:
:sheep:
:monkey_face:
:bird:
:dog:
:boar:
:mouse:
:cow:
:tiger:
:rabbit:
:dragon_face:
:snake:
:horse:
:sheep:
:monkey_face:
:bird:
:dog:
:boar:

第1問「ECMAScript第五版以前」

undefined = "abc"
undefined //=> "abc"

第2問「ECMAScript第五版以後」

undefined = "abc"
undefined //=> undefined

undefinedは、ECMAScript第五版の前後で動きが違います:hugging:

1
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
1
0