<button id="forEach()">forEach()</button>
<p id="result"></p>
//forEach()メソッドは配列の中身を繰り返す。

const array1 = ['t', 's', 'u','y', 'u'];
array1.forEach(name => console.log(name));

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.