Design comparison
SolutionDesign
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?
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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