Javascript Arithmetic Operator Question 1

Introduction

We would like to write a JavaScript program to convert degrees centigrade into degrees Fahrenheit.

Write the result to the page in a descriptive sentence.

The JavaScript equation for Fahrenheit to centigrade is as follows:

degFahren = 9 / 5 * degCent + 32 
let degCent = 25; 
let degFahren = //your code here 

console.log(degCent + " degrees centigrade is " + degFahren + 
           " degrees Fahrenheit"); 


let degCent = 25; 
let degFahren = 9 / 5 * degCent + 32; 

console.log(degCent + " degrees centigrade is " + degFahren + 
           " degrees Fahrenheit"); 



PreviousNext

Related