回答編集履歴
1
修正
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
```javascript
|
3
3
|
function addTax(price, func) {
|
4
4
|
const taxPrice = Math.round(price * 1.10);
|
5
|
-
|
5
|
+
func(name, taxPrice);
|
6
6
|
}
|
7
7
|
function displayPrice(name, price) {
|
8
8
|
console.log(`${name}の値段は${price}円です。`);
|
@@ -10,3 +10,4 @@
|
|
10
10
|
addTax(100,displayPrice.bind(name='トマト'));
|
11
11
|
addTax(80,displayPrice.bind(name='玉ねぎ'));
|
12
12
|
```
|
13
|
+
※根本的な間違いがあったので修正
|