We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfd2491 commit f02f5ffCopy full SHA for f02f5ff
Sprint-2/1-key-errors/0.js
@@ -17,8 +17,7 @@
17
18
// =============> write your new code here
19
function capitalise(str) {
20
- let newStr = `${str[0].toUpperCase()}${str.slice(1)}`;
21
- return newStr;
+ return `${str[0].toUpperCase()}${str.slice(1)}`;
22
}
23
24
console.log(capitalise("lowercase"));
Sprint-2/3-mandatory-implement/1-bmi.js
@@ -17,7 +17,7 @@
function calculateBMI(weight, height) {
let heightSquared = height * height;
let bmi = weight / heightSquared;
- return bmi.toFixed(1);
+ return parseFloat(bmi.toFixed(1));
console.log(calculateBMI(70, 1.73));
0 commit comments