How would you go around to collect the first letter of each word in a string, as in to receive an abbreviation?
Input: "Java Script Object
"Java Script Object
Try -
var text = ''; var arr = "Java Script Object Notation".split(' '); for(i=0;i
Demo - http://jsfiddle.net/r2maQ/