馃殌 CYBER WEEK SALE: 50% OFF on JavaScript Fundamentals 馃挭

Task #1075, Stage #6 - Mining Empire - Backend

Awesome! We have the config and we can access it! Now, let鈥檚 make it functional. The easy way would be to copy and tweak the structure from https://v2.coderslang.com/evil-empire-config A bit harder approach is to write everything yourself....

August 15, 2020 路 1 min 路 Coderslang Master

Task #1075, Stage #7 - Mining Empire - Backend

Good job! Now we move on to describing the upgrades. Upgrades is an array of objects. Each upgrade improves the performance of one or more producers. Here鈥檚 the structure of a single upgrade:...

August 15, 2020 路 2 min 路 Coderslang Master

Task #1075, Stage #8 - Mining Empire - Backend

The upgrades are done, so let鈥檚 add the achievements that the user can unlock within the game. Once again, we need an array of objects: id: a unique number which is used to identify an achievement title: a string that sets the name of the achievement description: a string that describes the achievement pictureURL: a string, an https link to the achievement picture in ....

August 15, 2020 路 1 min 路 Coderslang Master

Task #1075, Stage #9 - Mining Empire - Backend

Our mining empire should be playable for the extended periods of time, so let鈥檚 add prestige levels. prestigeLevels is an array of objects: id: a unique number which is used to identify the prestige level title: a string that sets the name of the prestige level multiplier: a number that defines increased production on this prestige level pictureURL: a string, an https link to the prestige level picture in ....

August 15, 2020 路 1 min 路 Coderslang Master

Task #1081 - Log Promise

Fix the function printUserCount. Right now it prints to the console the string Promise { <pending> }, but it should print the number of users. This task is part of the Full-Stack JavaScript Course...

August 15, 2020 路 1 min 路 Coderslang Master

Task #1082 - Unhandled rejection

Fix the function printUserCount. It should call handleUnknownError if the Promise is rejected. 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 #1093 - Resolve and reject

Function getUser accepts userId and returns a Promise. The functionality is missing and you need to fix that. The promise should be rejected if the userId is missing. The promise should be resolved with the appropriate user object if the userId is provided....

August 15, 2020 路 1 min 路 Coderslang Master

Task #110 - Fruits

Fill in the array fruits with 5 elements and export it from 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

Task #1108, Stage #1 - Funky console

Programming should be fun! In this task, you鈥檒l learn how to add a randomized delay to the console.log statements in JavaScript and Node.js. We鈥檒l start small. In the file function.js you see an empty function log....

August 15, 2020 路 1 min 路 Coderslang Master

Task #1108, Stage #2 - Funky console

Now, we鈥檒l split the output into individual characters. Each character should be printed separately using console.log Also, let鈥檚 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