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


Smartphone icons created by Freepik - Flaticon

Access an Array by Index

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

// create myArray from myJSON
const myArray = JSON.parse(myJSON);

// display array index 0
document.getElementById("demo").innerHTML = myArray[0];