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 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 .svg format
  • condition: an object that defines the condition when the achievement will be unlocked and awarded to the user.
    The structure is the same as for availabilityCondition

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.