Skip to content

Commit 98c6c44

Browse files
committed
formatting using prettier
1 parent 6dcd3ad commit 98c6c44

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ function capitalise(str) {
99
return str;
1010
}
1111

12-
// =============> the error message 'Identifier 'str' has already been declared', diplays because the toUpperCase function does not change the value of the varible declared
12+
// =============> the error message 'Identifier 'str' has already been declared', diplays because the toUpperCase function does not change the value of the varible declared
1313
// but it creates a new one.
14-
// =============> my new code:
14+
// =============> my new code:
1515
function capitalise(str) {
1616
let result = `${str[0].toUpperCase()}${str.slice(1)}`;
1717
return resault;

0 commit comments

Comments
 (0)