Skip to content

Commit fa465bd

Browse files
committed
Codewar Abbrevname problem.
1 parent 45325b6 commit fa465bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Codewars/AbbrevName.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// https://www.codewars.com/kata/abbreviate-a-two-word-name/javascript
2+
3+
function abbrevName(name) {
4+
return name.split(' ').map(x => x.substr(0, 1).toUpperCase()).join('.');
5+
}

0 commit comments

Comments
 (0)