Skip to content

Commit 443e1ec

Browse files
author
Ogbemi mene
committed
new
1 parent 32e9c02 commit 443e1ec

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎str‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function capitalise(str) {
2+
return `${str[0].toUpperCase()}${str.slice(1)}`;
3+
4+
}
5+
console.log(capitalise("hello world!"));

0 commit comments

Comments
 (0)