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....
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:...
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 ....
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 ....
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...
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...
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....
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...
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....
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....