javascript append variable to html code example Example: how to append a variable to html temp.append('temperature: ' + response.main.temp)