Skip to content

Commit ff1d8b8

Browse files
committed
Add comments to clarify scope of 'decimalNumber' variable in convertToPercentage function
1 parent 36c8ab9 commit ff1d8b8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • Sprint-3/1-key-errors

‎Sprint-3/1-key-errors/1.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ function convertToPercentage(decimalNumber) {
1616

1717
return percentage;
1818
}
19-
19+
// As a result of the conflict nothing runs.
2020
console.log(decimalNumber);
21+
// This line is outside the function and would not parse, as 'decimalNumber' only exists inside 'convertToPercentage' as a parameter.
2122

2223
// =============> write your explanation here
2324

0 commit comments

Comments
 (0)