3 ms·
Array.from(document.querySelectorAll('.temp__value')).map(el => el.innerText = Math.floor(cToF(Number(el.innerText)))) Implementing cToF is left as an exercise
by mcluck 3y ago
Array.from(document.querySelectorAll('.temp__value')).map(el => el.innerText = Math.floor(cToF(Number(el.innerText))))
Implementing cToF is left as an exercise for the reader