File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
docs/2-browser-apps/04-anonymous-function Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -119,22 +119,20 @@ const stars = rates.map((rate) => "★".repeat(rate));
119119先ほどの[ ` Array#map ` メソッド] ( https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Array/map ) を用いてみましょう。` students ` 変数に格納されている名前を箇条書きにしてください。
120120
121121``` javascript
122- const students = [" Scarlett " , " Hazel " , " Daisy " , " Dorian " ];
122+ const students = [" Hazel " , " Dorian " , " Scarlett " , " Daisy " ];
123123/* HTML要素を取得し、学生の名前をリストアイテムとして表示*/
124124```
125125
126126:::info ヒント
127127
128- - ` innerHTML ` により 、HTML要素を取得・変更できます。
128+ - ` innerHTML ` プロパティにより 、HTML要素を取得・変更できます。
129129- 箇条書きには ` ul ` タグや ` li ` タグを使用します。
130130- ` join ` メソッドを配列要素を指定された文字列で連結するのに使います。
131131
132132:::
133133
134134<Answer >
135135
136- ` Array#every ` メソッドを使うと、配列の全要素が指定された関数でテストできます
137-
138136``` javascript
139137const students = [" Scarlett" , " Hazel" , " Daisy" , " Dorian" ];
140138const listContainer = document .getElementById (" list-container" );
You can’t perform that action at this time.
0 commit comments