Open Dev-Davis opened 5 years ago
As a user, when I click the convert button, the correct temperature should display in the output
When I click convert, Then the correct converted temp should display
determineConverter
toCelsius
toFahrenheit
temp
domStringBuilder
finalTemp
unit
tempOutput
User Story
As a user, when I click the convert button, the correct temperature should display in the output
AC
When I click convert, Then the correct converted temp should display
Development
determineConverter
function should call eithertoCelsius
ortoFahrenheit
depending on what radio button is selectedtoCelsius
andtoFahrenheit
should each accept 1 input -temp
toCelsius
andtoFahrenheit
should convert the temperaturetoCelsius
andtoFahrenheit
should call thedomStringBuilder
function and pass the final number and C or FdomStringBuilder
should have 2 inputs -finalTemp
andunit
*domStringBuilder
should build an h2 tag that looks something like: '27 degrees F'domStringBuilder
should call printToDom and pass the idtempOutput
and the h2 string created