Question: My code // Exercise 1 var answer = prompt (Whats is your first name?); alert (Welcome to JavaScript, +answer); document.write( + answer +

My code

// Exercise 1

// Exercise 3 // Exercise 4 // Exercise 5 // Exercise 6 // Exercise 7 // Exercise 8

Create a function that converts the the inputted temperture from Celsius to Fahrenheit: convertToFahrenheit.

The function should first display a prompt asking the user to enter a temperature as Celsius.

The value entered should be validated to ensure it is a number.

Then, the appropriate formula should be applied to the value to convert the

temperature. Finally, an alert should be displayed indicating the

temperature that they entered, and the converted temperature.

The function should be called when the appropriate button below is pressed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!