質問編集履歴

2

情報の追加

2020/10/29 12:47

投稿

yyjfou
yyjfou

スコア35

test CHANGED
File without changes
test CHANGED
@@ -46,7 +46,7 @@
46
46
 
47
47
  const name = document.getElementById('name');
48
48
 
49
- name.textContent = jsn['browserName'];
49
+ name.textContent = jsn['name'];
50
50
 
51
51
  })
52
52
 

1

情報の追加

2020/10/29 12:47

投稿

yyjfou
yyjfou

スコア35

test CHANGED
File without changes
test CHANGED
@@ -32,7 +32,7 @@
32
32
 
33
33
  <body>
34
34
 
35
-
35
+ <div id="name"></div>
36
36
 
37
37
  <script>
38
38
 
@@ -43,6 +43,10 @@
43
43
  .then(jsn => {
44
44
 
45
45
  console.log(jsn)
46
+
47
+ const name = document.getElementById('name');
48
+
49
+ name.textContent = jsn['browserName'];
46
50
 
47
51
  })
48
52