js关于数组里的一些问题
红色加粗的那一行不知道什么意思,望大神指点迷津
<html>
<head>
</head>
<h3>哈哈哈</h3>
<pre>
<script type="text/javascript">
var studentArray=("marry","jack","hello");
docunment.writeln(studentArray.sort());
var numberArray=new Array(255,110,79,36,0);
document.writeln(numberArray.sort());
document.writeln(numberArray.sort(function(x,y){return y-x;}));
</script>
</pre>
</html>