This site is mobile accessible. Press the "Tap Here" button to use a different font-size.


Smartphone icons created by Freepik - Flaticon

Creating an Array from JSON

// create myJSON array
const myJSON = '["Ford", " BMW", " Fiat"]';

// create myArray from myJSON
const myArray = JSON.parse(myJSON);
document.getElementById("demo").innerHTML = myArray;