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 9a8bc46 commit d1fffc7Copy full SHA for d1fffc7
Sprint-1/exercises/decimal.js
@@ -15,7 +15,7 @@ console.log(` Whole number = ${wholeNumberPart}`);
15
const decimalPart = num - wholeNumberPart;
16
console.log(` Decimal part = ${decimalPart.toFixed(4)}`); // toFixed(4) to show 4 decimal places instead of whole number
17
18
-console.log(typeof(wholeNumberPart)); //confirm that decimalPart is a number
+console.log(`type of parameter = ${typeof(wholeNumberPart)}`); //confirm that decimalPart is a number
19
20
-const roundedNum = Math.round(num);
+const roundedNum = Math.round(num); // rounds to nearest whole number
21
console.log(` Rounded number = ${roundedNum}`);
0 commit comments