I have a String like the following:
var sArray="[0, [6, 2], null, 7, 1]";
However, I want to convert them to a fix type, because when I do it in the following way:
for (var i = 0; i < arr.length; i+=1) {
console.log(arr[i]);
}
It prints me character by character of the String.