質問編集履歴

4

修正

2019/11/16 04:04

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -18,9 +18,11 @@
18
18
 
19
19
 
20
20
 
21
- let obj={};
21
+ let objlist=[];
22
22
 
23
23
  for(i=0; i<2; i++){
24
+
25
+ let obj=[];
24
26
 
25
27
  obj[key[0]] = valuelist[i][0];
26
28
 
@@ -28,6 +30,8 @@
28
30
 
29
31
  obj[key[2]] = valuelist[i][2];
30
32
 
33
+ objlist.push(obj);
34
+
31
35
  }
32
36
 
33
37
  ```

3

修正

2019/11/16 04:04

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -8,17 +8,17 @@
8
8
 
9
9
  ```javascript
10
10
 
11
- let key=[name,address,tel];
11
+ let key=["name","address","tel"];
12
12
 
13
13
  let valuelist=[
14
14
 
15
- [田中,日本,000000000],
15
+ ["田中","日本","000000000"],
16
16
 
17
- [佐藤,日本,000000000]];
17
+ ["佐藤","日本","000000000"]];
18
18
 
19
19
 
20
20
 
21
- obj={};
21
+ let obj={};
22
22
 
23
23
  for(i=0; i<2; i++){
24
24
 

2

修正

2019/11/16 04:02

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  let key=[“name”,“address”,“tel”];
12
12
 
13
- let valuelist = [
13
+ let valuelist=[
14
14
 
15
15
  [“田中”,“日本”,“000000000”],
16
16
 

1

修正

2019/11/16 03:35

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -8,19 +8,17 @@
8
8
 
9
9
  ```javascript
10
10
 
11
- let key = [ “name”, “address”, “tel” ];
11
+ let key=[“name”,“address”,“tel”];
12
12
 
13
13
  let valuelist = [
14
14
 
15
- [ “田中”, “日本”, “000000000” ],
15
+ [“田中”,“日本”,“000000000”],
16
16
 
17
- [ “佐藤”, “日本”, “000000000” ]
17
+ [“佐藤”,“日本”,“000000000”]];
18
-
19
- ];
20
18
 
21
19
 
22
20
 
23
- obj = {}:
21
+ obj={};
24
22
 
25
23
  for(i=0; i<2; i++){
26
24