Answered step by step
Verified Expert Solution
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
below is javascript
need help with the red circled part
this is instruction.
- 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).
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started