Advertisement
This page is a candidate for deletion.
If you disagree with its deletion, please explain why at Category talk:Candidates for deletion or improve the page and remove the {{delete}} tag.
Remember to check what links here and the the page history before deleting.
function sort(arr) {
arr.sort();
}
arr = new Array('dog', 'cat', 'lion', 'tiger', 'bear');
sort(arr);
document.write(arr); /* Gives: bear,cat,dog,lion,tiger */