The function printArrayElements should use console.log to print out all the array elements to the screen.
But it doesn’t work as expected. For some reason only the indices and not the elements are printed.
Change 2 characters in the code to fix the issue.

This task is part of the Full-Stack JavaScript Course
If you have any issues with it, you can ask for community help below the post
Feel free to help others if you’ve already solved the task

helper.js

export const printArrayElements = (arr) => {
  for (let item in arr) {
    console.log(item);
  }
}

solution.js

import { printArrayElements } from './helper.js';

const arr = ['To', 'be', 'or', 'not', 'to', 'be'];

printArrayElements(arr);