The output I received from my AJAX request is:
["1","O"]
Though I need to extract the number 1 from it, when I use the code:
console.log(result[0]);
It returns:
'['
Any suggestions on how to convert it to an object and retrieve only the first element of the array result?