Skip to content

Commit 253abf4

Browse files
committed
sidesLength -> sideLength
1 parent 531435e commit 253abf4

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class Rectangle extends Shape {
1919
}
2020

2121
class Square extends Rectangle {
22-
constructor(color, sidesLength) {
23-
super(color, sidesLength, sidesLength);
22+
constructor(color, sideLength) {
23+
super(color, sideLength, sideLength);
2424
}
2525
}
2626

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,8 @@ document.write(false.toString()); // false
393393

394394
21時25分40秒に実行されたとき、
395395

396-
```
397-
今日は残り2時間34分20秒です。
398-
```
396+
````
397+
399398
400399
と表示する
401400
@@ -415,7 +414,7 @@ const remainingHours = 23 - now.getHours();
415414
const remainingMinutes = 59 - now.getMinutes();
416415
const remainingSeconds = 60 - now.getSeconds();
417416
countdownBox.textContent = `今日は残り${remainingHours}時間 ${remainingMinutes}分 ${remainingSeconds}秒です。`;
418-
```
417+
````
419418

420419
<ViewSource url={import.meta.url} path="_samples/count-down" />
421420

@@ -451,8 +450,8 @@ class Rectangle extends Shape {
451450
}
452451

453452
class Square extends Rectangle {
454-
constructor(color, sidesLength) {
455-
super(color, sidesLength, sidesLength);
453+
constructor(color, sideLength) {
454+
super(color, sideLength, sideLength);
456455
}
457456
}
458457

0 commit comments

Comments
 (0)