Im trying to replace the first '0' in index 0 of the array I made called 'bits'.
bits = ['01010'];
console.log(bits[0].charAt(1));
bits[0].charAt(0) = '9'; // <-Not working
console.log(bits[0].charAt(0));
What would I replace the third line of code with above to accomplish this?
The final console log should return '9'
Also str.replaceAt doesnt work as well