Question: I need help to to get my javascript to make these conversions. Studio 4 Let's make things happen Convert temperatures Fahrenheit: Celsius: Convert from F

I need help to to get my javascript to make these conversions. I need help to to get my javascript to make these conversions.

Studio 4

Let's make things happen

Convert temperatures

********************************css code******************************

@charset "UTF-8";

/* CS 3312, spring 2021 Studio 4 DON'T CHANGE THIS FILE */

/* Fixing the box-sizing attribute will make sizing boxes easier. */ html { box-sizing: border-box; }

/* Normally the * selector is smart to avoid, but for this purpose it's fine. */ *, *:before, *:after { box-sizing: inherit; }

body { background-color: rgb(255, 250, 245); font-family: Georgia, serif; }

h1 { color: rgb(34, 68, 102); text-align: center; }

fieldset { border-color: rgb(68, 136, 204); border-radius: 10px; border-style: solid; border-width: 2px; float: left; }

legend { border-color: rgb(68, 136, 204); border-style: solid; border-width: 2px; padding: 0px 5px; }

input { text-align: center; }

label, textarea { display: block; } **************************************** Javascript****************************

/*jslint browser */

// All the code below will be run once the page content finishes loading. document.addEventListener('DOMContentLoaded', function () { 'use strict';

// Add your JavaScript code here. // Do things when user clicks the Convert from buttons************************************** document.querySelector('#convert-f-to-c').addEventListener('click', function () document.querySelector('#convert-f-to-c').addEventListener('click', function (){ // Empty the output elements. document.querySelector('#convert-f-to-c').value = ''; document.querySelector('#convert-c-to-f').value = ''; document.querySelector('#poem-error').textContent = ''; // Get all input strings. const fahrenheit = document.querySelector('#fahrenheit').value; const celsius = document.querySelector('#celsius').value;

});

Convert temperatures Fahrenheit: Celsius: Convert from F to C Convert from C to F

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!