I'm trying to figure out what's causing the issue with the temperature not displaying. Can anyone help me identify and fix the error?
<script type="text/javascript">
$.ajax({
url: 'https://api.weather.gov/gridpoints/EWX/155,90/forecast/hourly'
}).done(function(res) {
var temp = res.properties.periods[0].temperature;
});
document.getelementbyid('temperature').innerHTML = temp
</script>
<p>
The current temperature should be displayed as <span id="temperature"></span>F.
</p>