Skip to content

Commit 23549ca

Browse files
committed
weight_tons -> weightInTons
1 parent c00cf05 commit 23549ca

File tree

1 file changed

+2
-2
lines changed
  • docs/2-browser-apps/03-class/_samples/car-class

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
class Car {
2-
weight_tons = 1;
2+
weightInTons = 1;
33
cost;
44
}
55

66
const prius = new Car();
77
prius.cost = 2600000;
88

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

0 commit comments

Comments
 (0)