Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help me with javascript code below is html below is javascript need help with the red circled part this is instruction. In script.js, write the

help me with javascript code

below is html

image text in transcribed

below is javascript

need help with the red circled part

image text in transcribed

this is instruction.

  1. In script.js, write the fahrenheitToCelsius function where indicated. The fahrenheitToCelsius function should have one parameter named fahrenheit, representing a Fahrenheit temperature. If fahrenheit is a finite number, your function should return that temperature converted to Celsius. If fahrenheit is not a finite number, your function should do nothing (the value undefined will be automatically returned).
  2. In script.js, notice the event handler that runs when the user clicks the button with id equal to calc-celsius-temp; it reads the input as a number and calls your fahrenheitToCelsius function to store the converted temperature in the outputNumber variable. Finish it by writing one line of code where indicated in the event handler. It should output the variable outputNumber to the element with id equal to celsius-output with exactly two (2) digits after the decimal point.
°C
L

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago