File tree Expand file tree Collapse file tree
Sprint-2/3-mandatory-implement Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717function calculateBMI ( weight , height ) {
1818 // return the BMI of someone based off their weight and height
19- const bmi = Math . round ( weight / ( height * height ) * 10 ) / 10 ;
19+ const bmi = Math . round ( ( weight / ( height * height ) ) * 10 ) / 10 ;
2020
2121 return bmi ;
2222}
2323
2424console . log ( calculateBMI ( 70 , 1.73 ) ) ; // Output: 23.4
2525console . log ( calculateBMI ( 80 , 1.8 ) ) ; // Output: 24.7
26- console . log ( calculateBMI ( 60 , 1.6 ) ) ; // Output: 23.4
26+ console . log ( calculateBMI ( 60 , 1.6 ) ) ; // Output: 23.4
Original file line number Diff line number Diff line change @@ -23,4 +23,4 @@ function toUpperSnakeCase(inputString) {
2323}
2424
2525console . log ( toUpperSnakeCase ( "hello there" ) ) ; // Output: "HELLO_THERE"
26- console . log ( toUpperSnakeCase ( "lord of the rings" ) ) ; // Output: "LORD_OF_THE_RINGS"
26+ console . log ( toUpperSnakeCase ( "lord of the rings" ) ) ; // Output: "LORD_OF_THE_RINGS"
You can’t perform that action at this time.
0 commit comments