typeof演算子を使用すると、型が文字列で出力される。
console.log(typeof "あ"); console.log(typeof 1); console.log(typeof true);
実行結果
$ node test.js string number boolean
typeof演算子を使用すると、型が文字列で出力される。
console.log(typeof "あ"); console.log(typeof 1); console.log(typeof true);
実行結果
$ node test.js string number boolean