'I Read using QuerySelectall.. how to write in innerhtml of these read tags?

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



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source