Skip to content

Commit 7d24e58

Browse files
committed
made the comments line by line as per PR comment.
1 parent 1188e3e commit 7d24e58

File tree

1 file changed

+3
-1
lines changed
  • Sprint-2/1-key-errors

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
*/
1212

1313
// =============> write your explanation here
14-
// The error is occurring because we are trying to declare a variable with the same name as the function parameter 'str'. This causes a conflict and results in a SyntaxError. To fix this, we can simply remove the 'let' keyword and assign the new value to 'str' directly, since 'str' is already defined as a parameter.
14+
/* The error is occurring because we are trying to declare a variable with the same name as the function parameter 'str'.
15+
This causes a conflict and results in a SyntaxError. To fix this, we can simply remove the 'let' keyword and assign
16+
the new value to 'str' directly, since 'str' is already defined as a parameter.*/
1517

1618

1719
// =============> write your new code here

0 commit comments

Comments
 (0)