Please excuse this extremely trivial question but I just started to experiment a little with Javascript but can't seem to figure out where I went wrong with this.

Uncaught ReferenceError: temperature is not defined

Every little tip is greatly appreciated!

```
$.ajax({
url: 'https://api.weather.gov/gridpoints/EWX/92,61/forecast/hourly' }).done(function(res) {
var temp = res.properties.periods[0].temperature;
});

function test () {
document.getElementById('temperature').innerHTML = temp;
}

```