JavaScript

[クイズ]javascriptと仲良くなるための一歩 第5話「null,undefined,NaNのtypeof」

null,undefined,NaNのtypeof

typeof null
//=> ?
typeof undefined
//=> ?
typeof NaN
//=> ?

: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:

typeof null
//=> "object"
typeof undefined
//=> "undefined"
typeof NaN
//=> "number"