<<<<<<< HEAD Code Wars - Brett Crafton

Abbreviate a Two Word Name

Question

Write a function to convert a name into initials. This kata strictly takes two words with one space in between them. The output should be two capital letters with a dot separating them. It should look like this: Sam Harris => S.H patrick feeney => P.F

No examples

Solution by -

My Solution


	function abbrevName(name){
		let arrayStrings = name.toUpperCase().split(" ")
			return arrayStrings.map(x => x[0]).join('.')
		}
				

Try it yourself - CodeWars

======= Code Wars - Brett Crafton

Abbreviate a Two Word Name

Question

Write a function to convert a name into initials. This kata strictly takes two words with one space in between them. The output should be two capital letters with a dot separating them. It should look like this: Sam Harris => S.H patrick feeney => P.F

No examples

Solution by -

My Solution


	function abbrevName(name){
		let arrayStrings = name.toUpperCase().split(" ")
			return arrayStrings.map(x => x[0]).join('.')
		}
				

Try it yourself - CodeWars

>>>>>>> 0e614172debaa009c8d31330edbeb3b765b59c39