console.log(alphabetize_string('United States'));
console.log('-------------------');
console.log(alphabetize_string('Tammar Haider'));
function alphabetize_string(str)
{
var temp = str.split('').sort();
temp.shift();
return temp.join('');
}
To embed this program on your website, copy the following code and paste it into your website's HTML: