how to print all values of variable in javascript for loop code example
Example: javascript loop through array
const array1 = ['a', 'b', 'c'];
array1.forEach(element => console.log(element));
const array1 = ['a', 'b', 'c'];
array1.forEach(element => console.log(element));