Iterating over an array with a for-of loop in JavaScript

The loop for-of allows you to sequentially iterate over the elements of arrays. It has the following syntax:

javascriptfor (let variableForElement of array) {
  /*
    The elements of the iterated array will
    sequentially fall into the variableForElement.
  */
}

Let's look at an example. Let the following array be given:

javascriptlet arr = [1, 2, 3, 4, 5];

Loop through this array and output its elements to the console:

javascriptfor (let elem of arr) {
  console.log(elem);
}
Задание 1

Print to the console all the elements of the following array:

javascriptlet arr = ['a', 'b', 'c', 'd', 'e'];