Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add the degrees celcius symbol in JavaScript

Tags:

javascript

I am trying to include the degrees Celsius symbol (°C) in my code, this is what I have and it is not working:

$('#temp').unbind().append((Math.round(temperature - 273.15)) + '&#8451');
like image 482
Jon Dan Avatar asked Sep 17 '25 19:09

Jon Dan


1 Answers

You just miss ; in ℃

like image 97
Arsen Avatar answered Sep 20 '25 10:09

Arsen