πforEach() λ©μλλ μ£Όμ΄μ§ ν¨μλ₯Ό λ°°μ΄ μμ κ°κ°μ λν΄ μ€ννλ€.
const array1 = ['a', 'b', 'c'];
array1.forEach(element => console.log(element));
// expected output: "a"
// expected output: "b"
// expected output: "c"
arr.forEach(func(value, index, array))
ν¨μλ‘ value, index, arrayλ₯Ό μ λ¬ν μ μλ€.