Day 19 of #100daysofjs

Looping through Arrays

Arrays can be looped through using the classical JavaScript for loop or through some other methods discussed below:

forEach loop

Calls a function, once for each array element

Array.from

used to create an array from any other object

for of

for of loop can be used to get the values from an array

for in

for in loop can be used to get the key from an array

code