I have degrees in Celsius switched them to Fahrenheit and cannot write them back to page.. picked them up with this statement
temp = document.querySelectorAll(".mylist span");
x=[]
for (let i = 0; i < temp.length; i++) {
temp[i].style.backgroundColor = "red";
x[i] = Number(temp[i].innerHTML);
Cannot write them back same way... Does not work
You need to set the innerHTML/textContent of the element with the new value.