5 lines
130 B
JavaScript
5 lines
130 B
JavaScript
|
function alphabet_order(str)
|
||
|
{
|
||
|
return str.split('').sort().join('');
|
||
|
}
|
||
|
console.log(alphabet_order("webmaster"));
|