oldoc63 / learningFS

Web development back and front
0 stars 0 forks source link

Piano keys #870

Open oldoc63 opened 2 years ago

oldoc63 commented 2 years ago

Piano Keys

You’re a web developer who has been hired by a music education company. This client wants you to create an interactive game to help their beginner-level piano students study. Create a piano player with DOM events in JavaScript!

oldoc63 commented 2 years ago
oldoc63 commented 2 years ago
  1. At the beginning of the code, we have variable name assignments for the keys array and the notes array. There is also a function looping through the elements of the keys array and pushing them to the notes array. After the second comment, create a function named keyPlay that changes the background color of the keys when they are pressed down. Be sure to use the .target property in the function because the target is being modified in this case.