Which is the better option?
So I am not sure if there's a big performance difference between using JavaScript instead of JSON for my array filled with data
(Reason I am not using JSON for my big array with data is because I don't know how to setup a usable JSON-file, I tried before but couldn't get my JavaScript-file to use it)
If there is a huge difference in performance and speed, could someone show or tell me how to make a JSON-file that I can use in JavaScript?
I can just create a .JSON in my program (visual studio code) but I don't know how to allow my JavaScript file to run it.
(so in other words, there's an array of 1200 + lines in my javascript and I am wondering if it would hinder the performance and speed)
(Reason I am not using JSON for my big array with data is because I don't know how to setup a usable JSON-file, I tried before but couldn't get my JavaScript-file to use it)
If there is a huge difference in performance and speed, could someone show or tell me how to make a JSON-file that I can use in JavaScript?
I can just create a .JSON in my program (visual studio code) but I don't know how to allow my JavaScript file to run it.
(so in other words, there's an array of 1200 + lines in my javascript and I am wondering if it would hinder the performance and speed)
