javascript functions and loops code example
Example 1: javascript loop through array
const array1 = ['a', 'b', 'c'];
array1.forEach(element => console.log(element));
Example 2: for loop javascript
var i;
for (i = 0; i < 10 ; i++) {
//do something
}