🚀 CYBER WEEK SALE: 50% OFF on JavaScript Fundamentals 💪

Task #1108, Stage #2 - Funky console

Now, we’ll split the output into individual characters. Each character should be printed separately using console.log Also, let’s refactor the code and rename our function to splitLog This task is part of the Full-Stack JavaScript Course....

August 15, 2020 · 1 min · Coderslang Master

Task #1108, Stage #3 - Funky console

The problem is that now each character is printed on a separate line. We can fix this by replacing console.log with process.stdout.write. As we still want the output to end with a newline character, print \n...

August 15, 2020 · 1 min · Coderslang Master

Task #1108, Stage #4 - Funky console

Great job! Now we’ll start working on a delay. Implement a sleep function and export it from the file helper.js Here’s the spec: sleep should return a Promise the Promise returned by sleep(ms) should be resolved in ms milliseconds This task is part of the Full-Stack JavaScript Course....

August 15, 2020 · 1 min · Coderslang Master

Task #1108, Stage #5 - Funky console

Let’s use the sleep function that you’ve just implemented. add a second parameter delay to the function writeLog sleep for delay milliseconds after printing each character don’t forget the async and `await keywords!...

August 15, 2020 · 1 min · Coderslang Master

Task #1108, Stage #6 - Funky console

The output will look even better if we randomize the timing. Let’s add another boolean parameter randomized to the function writeLog. If it’s true, then the argument passed into sleep...

August 15, 2020 · 1 min · Coderslang Master

Task #1108, Stage #7 - Funky console

Right now, we’ve implemented pretty much everything we wanted to. But calling it isn’t very clean as we have to pass the delay and randomization flag every time we want to print something to the console....

August 15, 2020 · 1 min · Coderslang Master

Task #1108, Stage #8 - Funky console

You did a great job! One more thing and we’ll be good to go Let’s add a default delay of 100ms to the funkylog. So, if the field delay is missing from the config object, we set it to the default value....

August 15, 2020 · 1 min · Coderslang Master

Task #111 - First user

Take a look at solution.js. It imports an object user from the file helper.js and logs it to the screen. Add properties name, surname and address to the user object in the file helper....

August 15, 2020 · 1 min · Coderslang Master

Task #112 - Objective is clear

Initialize the array objectives with 3 strings ‘Full’, ‘Stack’, ‘Javascript’ in file helper.js 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...

August 15, 2020 · 1 min · Coderslang Master

Task #113 - Two dimensional array

Make twoDime a 2 dimensional array in the file helper.js 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...

August 15, 2020 · 1 min · Coderslang Master