Skip to content

Commit d1fffc7

Browse files
committed
refactor: add more comments to my console.log()
1 parent 9a8bc46 commit d1fffc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sprint-1/exercises/decimal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ console.log(` Whole number = ${wholeNumberPart}`);
1515
const decimalPart = num - wholeNumberPart;
1616
console.log(` Decimal part = ${decimalPart.toFixed(4)}`); // toFixed(4) to show 4 decimal places instead of whole number
1717

18-
console.log(typeof(wholeNumberPart)); //confirm that decimalPart is a number
18+
console.log(`type of parameter = ${typeof(wholeNumberPart)}`); //confirm that decimalPart is a number
1919

20-
const roundedNum = Math.round(num);
20+
const roundedNum = Math.round(num); // rounds to nearest whole number
2121
console.log(` Rounded number = ${roundedNum}`);

0 commit comments

Comments
 (0)