Programming should be fun! In this task, you’ll learn how to add a randomized delay to the console.log statements in JavaScript and Node.js.
We’ll start small.
In the file function.js you see an empty function log.
The task is very straightforward:

  • log should accept a string and print it on the screen using console.log

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 log = () => {

}

solution.js

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

const message = `
Hello, world ๐Ÿ‘‹!

Let's make our Console Output Fun and Interactive in JavaScript and Node.js ๐Ÿš€
`;

log(message);