In my local storage I have some score value stored in array
var obj = localStorage.getItem("scoreList")
output
[0,10,10,0,10]
I want sum of this value like and return to data value
sum = 30
I have tried to convert into string value
var string = JSON.stringify(obj);
output "[0,10,10,0,10]"
How can I execute this sum value ?