Can't pass the test Help!

Drum machine project in Front End Development Libraries

I can’t pass test case 6 in the drum machine project struck in this problem for 5 days please help.
here’s my codepen solution

here’s the project

In your code you need to listen to the keyboard events:

  componentDidMount() {
    window.addEventListener("keypress", (e) => {
      // Keyboard key is pressed
      // Do something
1 Like

Thank You, I was stuck on this problem for so many days.
I didn’t know that I have to listen to key press.
Once again Thank You.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.