Skip to content

Commit cc5aae3

Browse files
authored
Carクラスを定義する問題での単位の表記を修正 (#769)
1 parent f14079d commit cc5aae3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/2-browser-apps/03-class/_samples/car-class/script.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ class Car {
66
const prius = new Car();
77
prius.cost = 2600000;
88

9-
document.write(`重さは${prius.weightInTons}tで、値段は${prius.cost}円です。`);
9+
document.write(
10+
`重さは${prius.weightInTons}トンで、値段は${prius.cost}円です。`,
11+
);

docs/2-browser-apps/03-class/index.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ class Car {
7575
const prius = new Car();
7676
prius.cost = 2600000;
7777

78-
document.write(`重さは${prius.weightInTons}tで、値段は${prius.cost}円です。`);
78+
document.write(
79+
`重さは${prius.weightInTons}トンで、値段は${prius.cost}円です。`,
80+
);
7981
```
8082

8183
<ViewSource url={import.meta.url} path="_samples/car-class" />

0 commit comments

Comments
 (0)