Last active
October 16, 2015 10:00
-
-
Save kyuden/172b3668529f6f11bd02 to your computer and use it in GitHub Desktop.
社内JS勉強会 : typeof検定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 環境 node v4.1.2 | |
// 実行せず出力結果を記述しなさい | |
console.log(typeof 'foo'); | |
console.log(typeof new Object()); | |
console.log(typeof undefined); | |
console.log(typeof new Function('x', 'y', 'return x * y')); | |
console.log(typeof true); | |
console.log(typeof /abc/g); | |
console.log(typeof String('hoge')); | |
console.log(typeof 10); | |
console.log(typeof [1,2,3]); | |
console.log(typeof false); | |
console.log(typeof new Boolean(false)); | |
console.log(typeof function(x,y) {return x * y;}); | |
console.log(typeof new Number(23)); | |
console.log(typeof new Array('foo', 'bar')); | |
console.log(typeof new Date()); | |
console.log(typeof null); | |
console.log(typeof new RegExp('/[\S\s]/g')); | |
console.log(typeof {}); | |
console.log(typeof new String('hoge')); | |
console.log(typeof Number('10')); | |
console.log(typeof new Error('Error!')); | |
console.log(typeof 1.6); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1問ミス -> 0点
2問ミス -> 0点
3問ミス -> 0点
〜〜〜〜〜〜〜〜〜
全問正解 -> 100点