Expense Chart Component

Solution retrospective
For this challenge, I used vanilla JavaScript. I converted the data.json file to data.js and I converted the json to a JavaScript array and exported that to use in my script.js file as I would get errors if I just wanted to import the data.json file into my script.js. Does anyone know a way to import json files into js files with vanila JavaScript?
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Jonathan Kila's solution.
Join our Discord community
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