A forecast in four lines
temperature.jstemperature.js
const toCelsius = k => k - 273.15;
const reading = toCelsius(285.65);
console.log(`${reading.toFixed(1)} °C`);const toCelsius = k => k - 273.15;
const reading = toCelsius(285.65);
console.log(`${reading.toFixed(1)} °C`);