You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sprint-2/1-key-errors/0.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,9 @@
11
11
*/
12
12
13
13
// =============> 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.*/
0 commit comments