Skip to content

Commit c301336

Browse files
committed
Reapply "declaraing the variable 'result' in capitalise function"
This reverts commit a7d7dfd.
1 parent 40804b4 commit c301336

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
@@ -13,6 +13,6 @@ function capitalise(str) {
1313
// but it creates a new one.
1414
// =============> my new code:
1515
function capitalise(str) {
16-
result = `${str[0].toUpperCase()}${str.slice(1)}`;
16+
let result = `${str[0].toUpperCase()}${str.slice(1)}`;
1717
return resault;
1818
}

0 commit comments

Comments
 (0)