JS Demo: Array Method & Iterators

slice() & forEach()

Open the console or see alerts for outputs.