@ProgressOnyema
Posted
Try using the fetch api to import the json file to your JavaScript file. This will work whether it is located locally or remotely(on a server).
Hope the insight helps!
:) I have tried updating the active chart(the one with cyan color) with respect to the date. So, it keeps updating based on the day ;)
Qn. I have one question with importing the json file into javascript. I have come up with a solution that uses assert statement which works for all the browsers but not in firefox. Can some one help me with the solution that works for all the browsers?
@ProgressOnyema
Posted
Try using the fetch api to import the json file to your JavaScript file. This will work whether it is located locally or remotely(on a server).
Hope the insight helps!
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord