Skip to content

Commit ae53e31

Browse files
authored
changing firstLetter with str
1 parent 644248f commit ae53e31

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
// =============> write your new code here
2222

23-
function capitalise(firstLetters) {
24-
firstLetters = `${firstLetters[0].toUpperCase()}${firstLetters.slice(1)}`;
25-
return firstLetters;
23+
function capitalise(str) {
24+
str = `${str[0].toUpperCase()}${str.slice(1)}`;
25+
return str;
2626
}
27-
console.log(capitalise("hello"))
27+
console.log(capitalise("str"))

0 commit comments

Comments
 (0)