-
Notifications
You must be signed in to change notification settings - Fork 853
Open
Description
Hello, I did this exercise that way below. It is wrong? work the same way that yours.
<title>Conversor de Temperatura</title><script>
function convertTemperature (degrees,unit){
if (unit === 'F') {
const result = (degrees - 32) *5 / 9
console.log(`'${result}C'`);
} else if (unit === 'C') {
const result2 = (degrees *9 / 5) + 32
console.log(`'${result2}F'`);
}
}
convertTemperature (86, 'F');
</script>
Metadata
Metadata
Assignees
Labels
No labels