How did you do with your attempt? You can take a look at one possible way of solving the lab here: https://github.com/PacktPublishing/Hands-on-JavaScript-for-Python-Developers/tree/master/chapter-7/pokeapi/solution-code.
Remember, there are multiple ways to solve a programming problem, so if your solution doesn't match the provided approach, it's OK! The main idea is to solve the problem.