Implement a function printArray that should take the array and print it to the screen using console.log

Each element should be printed on the separate line

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 printArray = (arr) => {
  console.log(arr);
}

solution.js

/**
 * Implement a function printArray that should take the array and print it to the screen using console.log
 *
 * Each element should be printed on the separate line
 * */

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

const months = [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ];

printArray(months);