File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
docs/2-browser-apps/03-class Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -174,23 +174,27 @@ const tanaka = {
174174 name: " 田中" ,
175175 age: 18 ,
176176 introduceSelf () {
177- document .write (` <p>私の名前は${ tanaka .name } です。${ tanaka .age } 歳です。<p>` );
177+ document .write (
178+ ` <p>私の名前は${ tanaka .name } です。${ tanaka .age } 歳です。</p>` ,
179+ );
178180 },
179181};
180182
181183const suzuki = {
182184 name: " 鈴木" ,
183185 age: 20 ,
184186 introduceSelf () {
185- document .write (` <p>私の名前は${ suzuki .name } です。${ suzuki .age } 歳です。<p>` );
187+ document .write (
188+ ` <p>私の名前は${ suzuki .name } です。${ suzuki .age } 歳です。</p>` ,
189+ );
186190 },
187191};
188192
189193const sato = {
190194 name: " 佐藤" ,
191195 age: 20 ,
192196 introduceSelf () {
193- document .write (` <p>私の名前は${ sato .name } です。${ sato .age } 歳です。<p>` );
197+ document .write (` <p>私の名前は${ sato .name } です。${ sato .age } 歳です。</ p>` );
194198 },
195199};
196200
@@ -216,7 +220,7 @@ class Student {
216220
217221 // メソッド introduceSelf を定義する
218222 introduceSelf () {
219- document .write (` <p>私の名前は${ this .name } です。${ this .age } 歳です。<p>` );
223+ document .write (` <p>私の名前は${ this .name } です。${ this .age } 歳です。</ p>` );
220224 }
221225}
222226
You can’t perform that action at this time.
0 commit comments