File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
docs/2-browser-apps/03-class Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ class Rectangle extends Shape {
1919}
2020
2121class Square extends Rectangle {
22- constructor ( color , sidesLength ) {
23- super ( color , sidesLength , sidesLength ) ;
22+ constructor ( color , sideLength ) {
23+ super ( color , sideLength , sideLength ) ;
2424 }
2525}
2626
Original file line number Diff line number Diff line change @@ -393,9 +393,8 @@ document.write(false.toString()); // false
393393
39439421時25分40秒に実行されたとき、
395395
396- ```
397- 今日は残り2時間34分20秒です。
398- ```
396+ ````
397+
399398
400399と表示する
401400
@@ -415,7 +414,7 @@ const remainingHours = 23 - now.getHours();
415414const remainingMinutes = 59 - now.getMinutes();
416415const remainingSeconds = 60 - now.getSeconds();
417416countdownBox.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
453452class Square extends Rectangle {
454- constructor (color , sidesLength ) {
455- super (color, sidesLength, sidesLength );
453+ constructor (color , sideLength ) {
454+ super (color, sideLength, sideLength );
456455 }
457456}
458457
You can’t perform that action at this time.
0 commit comments