foreachの第二引数とは、と調べたら良いのを見つけたので張っておく。
let array = ['東京','大阪','仙台','名古屋'];
array.forEach(function(value) {
console.log(value + 'のローマ字表記は'+ this[value] +'です');
},list);
Go to list of users who liked
More than 1 year has passed since last update.
foreachの第二引数とは、と調べたら良いのを見つけたので張っておく。
let array = ['東京','大阪','仙台','名古屋'];
array.forEach(function(value) {
console.log(value + 'のローマ字表記は'+ this[value] +'です');
},list);
Register as a new user and use Qiita more conveniently
Go to list of users who liked