Can I do the The Can Store challenge the other way around?

The challenge at the end of the “Fetching data from the server” section of the API Learning Area is to turn The Can Store example webpage from a version that uses Fetch to a version that uses XHR.

But since Fetch is the more modern version of data retrieval, I’d rather do the exercise the other way around i.e. take the finished XHR version and turn it into a version that uses Fetch. Is this a good/bad idea? Can the challenge even be done that way?

Hello @olliv

hope that everything going fine with you

first you can do whatever you like but the course try to give you the both way so you be familier with it as you may work in old project or have to make code available for user who use browser that does not support the fetch

hope that help and have a nice day