Skip to content

Commit f919f28

Browse files
committed
fix str function
1 parent af89dc0 commit f919f28

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • Sprint-3/1-key-errors

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
// =============> write your new code here
1818

1919
function capitalise(str) {
20-
// let str2= `${str[0].toUpperCase()}${str.slice(1)}`
21-
// return str2
22-
return str2= `${str[0].toUpperCase()}${str.slice(1)}`;
20+
return str= `${str[0].toUpperCase()}${str.slice(1)}`;
2321
}
2422
console.log(capitalise("money"))

0 commit comments

Comments
 (0)