配列arryに数字を格納し、それを1つずつコンソールに出力させる処理
app.js
const arry = [1, 2, 3, 4]
arry.forEach(function() {
console.log(val)
})
出力結果
1
2
3
4
Go to list of users who liked
More than 3 years have passed since last update.
配列arryに数字を格納し、それを1つずつコンソールに出力させる処理
const arry = [1, 2, 3, 4]
arry.forEach(function() {
console.log(val)
})
1
2
3
4
Register as a new user and use Qiita more conveniently
Go to list of users who liked