Skip to content

Commit cd16173

Browse files
committed
made changes recommended by reviewer.
1 parent 22907b2 commit cd16173

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Sprint-2/3-mandatory-implement/1-bmi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
function calculateBMI(weight, height) {
1818
let bmi = weight/(height *height)
19-
return `${bmi.toFixed(1)}`
19+
return bmi.toFixed(1)
2020
// return the BMI of someone based off their weight and height
2121
}
2222
console.log(calculateBMI(80 , 1.73))

Sprint-2/3-mandatory-implement/2-cases.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// Use the MDN string documentation to help you find a solution
1616
// This might help https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase
1717

18-
function UpperSnakeCase(str) {
19-
return `${str.toUpperCase().replaceAll(" ", "_")}`;
18+
function upperSnakeCase(str) {
19+
return str.toUpperCase().replaceAll(" ", "_");
2020
}
21-
console.log(UpperSnakeCase("hello world in javascript"));
21+
console.log(upperSnakeCase("hello world in javascript"));

0 commit comments

Comments
 (0)