JS Demo: Using the forEach() Method

Open the console or see alerts for outputs.