+ 1

Write a program to input the full name ,and print the initials.

Suppose, Input: sanjay kumar sharma Output : s.k.s or S.K.S

7th Oct 2017, 1:26 PM
Harsh Tirkey
Harsh Tirkey - avatar
4 Answers
7th Oct 2017, 1:35 PM
Anuj Khetan
Anuj Khetan - avatar
+ 1
String.prototype.initials = function() { return this.split(' ').map(w=>w[0]).join('.') } https://code.sololearn.com/WGVZ7NnvLBpc/?ref=app
7th Oct 2017, 1:55 PM
CalviŐČ
CalviŐČ - avatar
0
I'm too lazy to complete challenges in OOP style for today. https://code.sololearn.com/wSeLrkRSM1pY/?ref=app
7th Oct 2017, 2:20 PM
Freezemage
Freezemage - avatar
0
https://code.sololearn.com/cGE9vNV82tRx/?ref=app
7th Oct 2017, 3:49 PM
LordHill
LordHill - avatar