Skip to content

Commit 335cc37

Browse files
committed
Avoid redeclaring 'str' inside capitalise function
1 parent c278bbb commit 335cc37

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function capitalise(str) {
1111
return str;
1212
}
1313

14-
// =============> write your explanation here
14+
// =============> write your explanation here
1515
// The function already receives `str` as a parameter.
1616
// Inside the function, it tries to declare `let str = ...`,
1717
// which causes a conflict because JavaScript does not

0 commit comments

Comments
 (0)