質問編集履歴
1
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,23 +4,21 @@
|
|
4
4
|
|
5
5
|
```HTML
|
6
6
|
|
7
|
-
<div id="myid>
|
7
|
+
<div id="myid">
|
8
8
|
|
9
|
-
<h1>テキスト</h1>
|
9
|
+
<h1>テキスト</h1>
|
10
10
|
|
11
11
|
</div>
|
12
12
|
|
13
|
-
<input type="button" value="click onclick="myfunc()">
|
13
|
+
<input type="button" value="click onclick="myfunc()">
|
14
14
|
|
15
|
-
<sctipt>
|
15
|
+
< sctipt >
|
16
16
|
|
17
|
-
let myfunc = () => {
|
17
|
+
let myfunc = () => {
|
18
18
|
|
19
|
-
let myid = document.getElementById('myid').textContent='テキスト1';
|
19
|
+
let myid = document.getElementById('myid').textContent = 'テキスト1';
|
20
20
|
|
21
|
-
}
|
22
|
-
|
23
|
-
</script>
|
21
|
+
} < /script>
|
24
22
|
|
25
23
|
```
|
26
24
|
|
@@ -32,11 +30,11 @@
|
|
32
30
|
|
33
31
|
let total = (price) => {
|
34
32
|
|
35
|
-
let tax = 0.08;
|
33
|
+
let tax = 0.08;
|
36
34
|
|
37
|
-
price = price + price * tax;
|
35
|
+
price = price + price * tax;
|
38
36
|
|
39
|
-
return price;
|
37
|
+
return price;
|
40
38
|
|
41
39
|
}
|
42
40
|
|