Answers for "get first element in json array javascript"

0

get first element in json array javascript

const json = "[1, 2, 3]";
const firstElement = JSON.parse(json)[0];
Posted by: Guest on April-15-2022

Code answers related to "get first element in json array javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language