Skip to content

Commit af89dc0

Browse files
committed
simplified task o.js
1 parent db8bec9 commit af89dc0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • Sprint-3/1-key-errors

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

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

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

0 commit comments

Comments
 (0)