Skip to content

Instantly share code, notes, and snippets.

@kyuden
Last active October 16, 2015 10:00
Show Gist options
  • Save kyuden/172b3668529f6f11bd02 to your computer and use it in GitHub Desktop.
Save kyuden/172b3668529f6f11bd02 to your computer and use it in GitHub Desktop.
社内JS勉強会 : typeof検定
// 環境 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);
@kyuden
Copy link
Author

kyuden commented Oct 14, 2015

1問ミス -> 0点
2問ミス -> 0点
3問ミス -> 0点
〜〜〜〜〜〜〜〜〜
全問正解 -> 100点

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment