LoginSignup
1
0

More than 5 years have passed since last update.

[クイズ]javascriptと仲良くなるための一歩 第27話「比較」

Last updated at Posted at 2017-08-13

問題

第1問

'10'>2 //=> ?

第2問

'10'>'2' //=> ?

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

'10'>2 //=> true

数として変換され比較します

第2問

'10'>'2' //=> false

文字列として比較します

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