As a user when I click the convert button something should display in the output.
AC
When I click the convert button
Then I should see a console.log of the temp in the input
And I should see a console.log of which radio button I clicked
And I should see the temp inputted display in the output box
Development
Create an input with id tempInput
Create radio buttons
Create div with id temptOutput
Create Convert button with id convertBtn
Create event listener on button that runs a function called determineConverter
determineConverter function should console.log value in the input. Should console.log either C or F depending on which radio button is selected. Should print the tempInput value to the output div.
Write a printToDom function - 2 inputs - divId and textToPrint
User Story
As a user when I click the convert button something should display in the output.
AC
When I click the convert button Then I should see a console.log of the temp in the input And I should see a console.log of which radio button I clicked And I should see the temp inputted display in the output box
Development
tempInput
temptOutput
convertBtn
determineConverter
determineConverter
function should console.log value in the input. Should console.log either C or F depending on which radio button is selected. Should print thetempInput
value to the output div.printToDom
function - 2 inputs - divId and textToPrint