Code Monkey home page Code Monkey logo

playlist's Introduction

Playlist Project

Overview:

In this unit, coders will create a Playlist. The Playlist will display a list of information about different songs with images and links to play the songs. To create this project, coders will create arrays to hold song information, use a forEach loop to iterate over the arrays, and display data to the screen. They will use .push to add new songs to their playlist. Then, students will refactor their project to using objects instead of arrays to hold their data.

Day 1

Planning

  • Complete the project planning document.

Set-Up

  • Go to the repository
  • Fork this repository to your github account and clone to a new workspace
  • Add, commit, and push your changes
  • Make your site live on gh-pages
  • Submit your website using the link on the Agenda

HTML

  • Create a div to display your songs

JavaScript

  • Create an array to store your song names
  • Repeat these steps for song artist, song length, image, and link

Wrap

  • Push your changes!

Day 2

JavaScript

  • Create a loop to display your song names
  • Repeat these steps for song artist, song length, image, and link

Wrap

  • Push your changes!

Day 3

JavaScript

  • Add song information to your list using .push()
  • Create a working click handler that retrieves user input, pushes new items to your song arrays, and displays the result to the screen

Wrap

  • Push your changes!

Day 4

JavaScript

  • Comment out your code that refers to arrays
  • Create Objects in your playlist project that hold all your song information
  • Combine all your Objects into one array

Wrap

  • Push your changes!

Day 5

JavaScript

  • Update your .push() method based on your new array of Objects
  • Update your loop based on your new array of Objects
  • Finish refactoring your playlist project

Wrap

  • Push your changes!

Project Extensions:

  • Add in your own CSS to personalize your project
  • Use .length to display how many songs are on your list
  • Add a delete button to delete songs on your list
  • Refactor your project further by utilizing functions to simplify your code
  • Add a shuffle button and functionality
  • Use local storage to save your songs locally

References/Tools

playlist's People

Contributors

emilygarvey avatar pwjablonski avatar carolynnjimenez avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.