for...of with array

Report a typo

Complete the loopArray function with the for...of loop, which iterates over the array accepted by the function, and print each value to the console.

Write a program in JavaScript
function loopArray(arr){
// write your code here

}
___

Create a free account to access the full topic