Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Fahrenheit to celsius in javascript

function fahrenheitToCelsius(fahrenheit) {
    var celsius = (fahrenheit - 32) * 5 / 9;
    return celsius;
}
console.log(fahrenheitToCelsius(64))
//Output: 17.77777777777778
 
PREVIOUS NEXT
Tagged: #Fahrenheit #celsius #javascript
ADD COMMENT
Topic
Name
6+9 =