Giter Site home page Giter Site logo

flw1-playlist-23-24-starter's Introduction

Playlist Project

Planning & Functions

Goal #1: Get started with the project, understand the inspiration behind it, and gather song data.

Tasks:

  • Setup: Clone or Fork the Starter Code.
  • Exploration: Navigate to “Inspiration and Ideas!” in your project plan and gather some concepts.
  • Brainstorming: Complete the “Let’s Brainstorm” section.
  • Data Collection: Fill in your favorite tracks in “Collect Song Data”.

Arrow Functions

Goal #1: Review and practice using arrow functions while getting familiar with the starter code.

Goal #2: Store html elements in variables.

Tasks:

  • Code Review: Read through the provided HTML and JavaScript starter code.
  • Code Creation: Declare variables for display divs.

Arrays

Goal #1: Create arrays to store song data.

Goal #2: Start customizing the CSS of your playlist.

Tasks:

  • Data Structures: Create arrays to store song data.

  • Style: Apply any stylistic changes you planned in the previous brainstorming session. 😎

    Considerations: You might want to have an array for each data type: one for image URLs, one for song names, one for artists, and one for song links.

Loops

Goal #1: Learn to manipulate arrays using loops and display song data.

Tasks:

  • Looping: Loop through arrays using either for, forEach, or other loop structures and display song data.

    Considerations: Think about the type of HTML tags to use for your data and the div container to which you're displaying the data.

Array Properties & Methods

Goal #1: Store user input to add new songs.

Goal #2: Push new songs to playlist data.

Tasks:

  • Variables: Declare variables to save the user input. You need four in total: image URLs, song names, artists, and song links.
  • Array Manipulation: Use the .push() method to add the user input to the appropriate arrays.

Objects

Goal #1: Refactor your data to use objects instead of arrays for better data management.

Tasks:

  • Refactoring: Refactor your data to use objects instead of arrays.

    Considerations:

    • Consider commenting out the array data to keep as a reference.
    • Each song should be represented as an object that has key/value pairs for: song name, artist, image URL, and song link.
    • Store all of the song objects in an array.

flw1-playlist-23-24-starter's People

Contributors

cn-mika avatar cn-curriculum 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.