Create your own personal music playlist!
Use ES6 methods to render music data to your browser
To complete this project, students should have the following:
- Intermediate understanding of HTML structures (divs, attributes, images...etc.).
- Intermediate understanding of JavaScript ES6 and DOM (variables, event listeners, map, filter...etc.)
To complete Part I, fulfill the following requirements:
- Set up your project file structure through the command line.
- Create the following:
- HTML file
- CSS file
- JS file
- data.js file
- link the
data.js
file with<script>
tag above yourapp.js
file - Link all of your files correctly.
To complete Part II, fulfill the following requirements:
- Create an array of objects with the following properties in variable
data
:
- artist
- genre
- song
- album images
Example:
const data = [
{
artist: 'Drake',
genre: 'Hip-Hop',
song: 'In My Feelings',
image: 'https://bit.ly/2CFcZnz'
}
]
- Create 6 different music genres of your choice, with 6 different songs/artist in each genre
- All your data should be saved in
data.js
file
- Access your music data by
console.log(data)
; - Use
filter
andmap
to render out your data
- Use flexbox to organize layout of your application
- Make it more pretty
- Add more genres