Skip to content

Commit dd44041

Browse files
found the other issue in this function
1 parent ddfd57a commit dd44041

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • Sprint-2/1-key-errors

Sprint-2/1-key-errors/1.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ console.log(decimalNumber);
1515

1616
// =============> write your explanation here
1717
// Since the parameter and variable have the same name, decimalNumber, we will get an error as we can not declare a
18-
// variable of the same name with in the functions local scope
18+
// variable of the same name with in the functions local scope. In addition to that setting decimalNumber to 0.5 means
19+
// the function will always return 50% no matter what number is passed into it.
1920

2021
// Finally, correct the code to fix the problem
2122
// =============> write your new code here

0 commit comments

Comments
 (0)