The upgrades are done, so let’s 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 achievementtitle
: a string that sets the name of the achievementdescription
: a string that describes the achievementpictureURL
: a string, an https link to the achievement picture in.svg
formatcondition
: an object that defines the condition when the achievement will be unlocked and awarded to the user.
The structure is the same as foravailabilityCondition
Fill in the achievements array with at least 3 elements based on the description above.
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.