Date.prototype.toLocaleTimeString() Lab

66.7% Acceptance

In this lab, you have to work with the Date.prototype.toLocaleTimeString() method to format the current local time. You will create a function called formatCurrentTime that returns the current local time as a string in the 'hh:mm:ss' format. Additionally, you have to create an array called multipleFormattedTimes that contains three formatted local times that are at least 1 second apart from each other. Use ESM syntax for this lab.