Skip to content
Advertisement

How to add the degrees celcius symbol in 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');

Advertisement

Answer

You just miss ; in

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement