Skip to content

Commit

Permalink
Add formulas for both conversion functions
Browse files Browse the repository at this point in the history
  • Loading branch information
worriedape committed Dec 10, 2024
1 parent add51c5 commit 57d134f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions 07_tempConversion/tempConversion.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
const convertToCelsius = function() {
const convertToCelsius = function(fahre) {

let convert = ((fahre - 32) * 5/9);

return convert.toFixed(1)

};

const convertToFahrenheit = function() {
const convertToFahrenheit = function(celsius) {

let convert = ((celsius - 32) * 9 / 5);

return convert.toFixed(1);

};

// Do not edit below this line
Expand Down

0 comments on commit 57d134f

Please sign in to comment.