There was an error while loading. Please reload this page.
1 parent ddfd57a commit dd44041Copy full SHA for dd44041
1 file changed
Sprint-2/1-key-errors/1.js
@@ -15,7 +15,8 @@ console.log(decimalNumber);
15
16
// =============> write your explanation here
17
// 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
+// 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.
20
21
// Finally, correct the code to fix the problem
22
// =============> write your new code here
0 commit comments