Implement the function delayedLog(s, n).

It should print the string s to the console after n seconds.

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

functions.js

export const delayedLog = (s, n) => {
  console.log(s);
}

solution.js

/**
 * Implement the function delayedLog(s, n)
 *
 * It should print the string `s` to the console after `n` seconds.
 *
 * */

import { delayedLog } from './functions.js';

delayedLog('1 second..', 1);
delayedLog('2 seconds..', 2);
delayedLog('4 seconds..', 4);
delayedLog('8 seconds..', 8);