Skip to content

Assessment project for NSS students to debug and fix existing code and implement event listeners

Notifications You must be signed in to change notification settings

Nashville-Software-School-Assessments/kids-dreams-assessment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Events and Debugging Assessment

Time to assess how well you have learned to use the debugging tools in Chrome Dev Tools, and writing click event listeners. This application is to show kids with illnesses and the memories the would like to make. Celebrities sign up to help kids make memories.

🧨 Make sure you answer the vocabulary and understanding questions at the end of this document before notifying your coaches that you are done with the project

Event Listeners to Create

  1. When the kid name is clicked, it should display their wish.
  2. When the celebrity name is clicked, it should display their sport.
  3. The pairings list should should contain the pairing in the following format.
    {child name} will be making memories with {celebrity name}, a {celebrity sport} star, by {child wish}

Below is an animation showing how the application should look when complete and how the event listeners should work.

Setup

Your instruction team will provide a link for you to create your assessment repository. Once your repo is created, clone it to your machine.

  1. Make sure you are in your workspace directory.
  2. git clone {github repo SSH string}.
  3. cd into the directory it creates.
  4. code . to open the project code.
  5. Use the serve command to start the web server.
  6. Open the URL provided in Chrome.

Make sure your Developer Tools are open at all times while working on this project. Use the messages provided in the Console to determine what code needs to be fixed or implemented, and use breakpoints in the Sources tab to step through your code as you debug.

Vocabulary and Understanding

Before you click the "Complete Assessment" button on the Learning Platform, add your answers below each question and make a commit.

  1. When a child is clicked on in the browser, which module contains the code that will execute on that event happening? Can you explain the algorithm of that logic?

    Your answer here

  2. In the Pairings module, why must the findCelebrityMatch() function be invoked inside the for..of loop that iterates the kids array?

    Your answer here

  3. In the CelebrityList module, can you describe how the name of the sport that the celebrity plays can be displayed in the window alert text?

    Your answer here

  4. Can you describe, in detail, the algorithm that is in the main module?

    Your answer here

About

Assessment project for NSS students to debug and fix existing code and implement event listeners

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published