Skip to content

Commit 9a02929

Browse files
Update variable naming
1 parent 107eaf2 commit 9a02929

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • Sprint-3/1-key-errors

‎Sprint-3/1-key-errors/0.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
// If I give the new variable a different name, I hope it should work :)
1515

1616
function capitalise(str) {
17-
let newString = `${str[0].toUpperCase()}${str.slice(1)}`;
18-
return newString;
17+
let capitalisedString = `${str[0].toUpperCase()}${str.slice(1)}`;
18+
return capitalisedString;
1919
}
2020

2121
console.log(capitalise("frumentius"));

0 commit comments

Comments
 (0)