In the same page where you are given the challenges there are examples: https://codepen.io/freeCodeCamp/full/zNqgVx.
You can use the Change View button at the top right in that sample, setting it to Editor View so you can see what they did to get all the tests to pass.
You can look for other people’s Tribute Pages in this forum too so you can see the many different ways people are able to complete it.
Search for other people looking for help too, as it is normal to feel completely lost reaching that point. Go back to what you were taught up to that point, all that helps to understand that it’s nothing new, the only new thing is that you are tasked to do everything from scratch.