Started learning JS this week. Ran into trouble with the modal functions. Why is the 2nd alert function using the return value of the 1st alert function, causing the script to fail? Why not iterate the elements of the array
alert('hi')
[1,2].forEach(alert)