Skip to content

Commit 20a688e

Browse files
committed
fix: correct return statement in capitalise function
1 parent 7c9837f commit 20a688e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Sprint-3/1-key-errors

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
// =============> write your new code here
2020

2121
function capitalise(str) {
22-
return str = `${str[0].toUpperCase()}${str.slice(1)}`;
22+
return `${str[0].toUpperCase()}${str.slice(1)}`;
2323
}
2424
console.log(capitalise("money"));

0 commit comments

Comments
 (0)