I am learning Javascript and am having issues with the split array method. I would like to see how the split function will organise my string values. I keep receiving an ‘Uncaught SyntaxError: redeclaration of let i’ message. This is the code, I am not sure what I am doing wrong:
let someArray= [
‘Bananas:6.99’,
‘Apples:3.99’, ’
Tomatoes: 30.99’ ];
for ( let i=0, i<= someArray.length, i++) {
let arrayList = someArray[i].split(’:’);
console.log(arrayList);
}