Skip to content

Commit 712457a

Browse files
committed
Reflected changes to index.md
1 parent e680b40 commit 712457a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/2-browser-apps/04-anonymous-function/_samples/map/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const students = ["Scarlett", "Hazel", "Daisy", "Dorian"];
1+
const students = ["Hazel", "Dorian", "Scarlett", "Daisy"];
22

33
const studentList = document.getElementById("student-list");
44
studentList.innerHTML = students

docs/2-browser-apps/04-anonymous-function/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ const students = ["Hazel", "Dorian", "Scarlett", "Daisy"];
134134
<Answer>
135135

136136
```javascript
137-
const students = ["Scarlett", "Hazel", "Daisy", "Dorian"];
138-
const listContainer = document.getElementById("list-container");
139-
listContainer.innerHTML = students
137+
const students = ["Hazel", "Dorian", "Scarlett", "Daisy"];
138+
const studentList = document.getElementById("student-list");
139+
studentList.innerHTML = students
140140
.map((student) => `<li>${student}</li>`)
141141
.join("");
142142
```

0 commit comments

Comments
 (0)