質問編集履歴

1

文法の修正

2018/08/17 04:02

投稿

newyee
newyee

スコア213

test CHANGED
File without changes
test CHANGED
@@ -6,6 +6,10 @@
6
6
 
7
7
  var ary = [5,25,10];
8
8
 
9
- console.log(ary.sort());
9
+ console.log(ary.sort(function(x,y){
10
+
11
+ return x - y;
12
+
13
+ }));
10
14
 
11
15
  ```