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
- When the kid name is clicked, it should display their wish.
- When the celebrity name is clicked, it should display their sport.
- 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.
Your instruction team will provide a link for you to create your assessment repository. Once your repo is created, clone it to your machine.
- Make sure you are in your
workspace
directory. git clone {github repo SSH string}
.cd
into the directory it creates.code .
to open the project code.- Use the
serve
command to start the web server. - 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.
Before you click the "Complete Assessment" button on the Learning Platform, add your answers below each question and make a commit.
- 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
- In the Pairings module, why must the
findCelebrityMatch()
function be invoked inside thefor..of
loop that iterates the kids array?Your answer here
- 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
- Can you describe, in detail, the algorithm that is in the
main
module?Your answer here