Skip to content

Commit c64a8a6

Browse files
committed
finish wesbos#17: display band in HTML.
1 parent dedfd38 commit c64a8a6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

17--Sort_Without_Articles/index-jds.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
<ul id="bands"></ul>
4444

4545
<script>
46+
const list = document.querySelector('#bands');
47+
4648
const bands = ['The Plot in You', 'The Devil Wears Prada', 'Pierce the Veil', 'Norma Jean', 'The Bled', 'Say Anything', 'The Midway State', 'We Came as Romans', 'Counterparts', 'Oh, Sleeper', 'A Skylit Drive', 'Anywhere But Here', 'An Old Dog'];
4749
console.log(bands);
4850

@@ -79,6 +81,11 @@
7981
});
8082
console.log(bandsSorted);
8183

84+
list.innerHTML = bandsSorted.map(band => {
85+
return `
86+
<li>${band}</li>
87+
`}).join('');
88+
8289
</script>
8390

8491
</body>

0 commit comments

Comments
 (0)