11 lines
302 B
JavaScript
11 lines
302 B
JavaScript
|
let fahrenheit = 50;
|
||
|
|
||
|
// calculate celsius and store in celsius variable
|
||
|
// print the value
|
||
|
let celsius = (fahrenheit - 32) * (5/9);
|
||
|
console.log("Celsius: " + celsius);
|
||
|
|
||
|
// calculate kelvin value and store in variable
|
||
|
// print that value
|
||
|
let kelvin = celsius + 273.15;
|
||
|
console.log("Kelvin: " + kelvin);
|