How to rewrite such code snippet to pure JS?
$('.temp').each(function(i){ var tempMin = Math.floor(weather.forecast.forecastday[i].day.mintemp_c); var tempMax = Math.floor(weather.forecast.forecastday[i].day.maxtemp_c); $(this).append("<p>" + tempMin + "/" + tempMax + "°C"); });