Set Timeout in JavaScript
Easy
1
0.0% Acceptance
In this lab, your task is to create a function called delayedLog
which accepts a single parameter, time
(in milliseconds). This function should use setTimeout
to log 'Executed!' to the console after a specified number of milliseconds (the time
parameter value). You need to export the delayedLog
function using ESM syntax.