which of the is not looping structure JavaScript code example
Example 1: javascript loop through array
const array1 = ['a', 'b', 'c'];
array1.forEach(element => console.log(element));
Example 2: forloop in js
for(i = 0; i < x; ++i){
//Loop, x can be replaced with any integer;
}