Fix the function myLoop to make sure it prints numbers from 0 to 99 to the screen using the “while” loop

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

let i;

while (i < 99) {
  console.log(i);
  i++;
}

export const myLoop = () => {
  console.log(i);
};

solution.js

/**
 * Fix the function myLoop to make sure it prints numbers from 0 to 99 to the screen using the "while" loop
 * */

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

myLoop();