LoginSignup
0
0

【JavaScript】【Jquery】文字列の配列をINT(数値型)にする

Posted at

コード

process.stdin.resume();
process.stdin.setEncoding('utf8');

var aaa = ['1','2','3'].map(Number);
console.log(aaa);

結果

[1,2,3]
0
0
1

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