Drum Machine [object Error] {}

Tell us what’s happening:
When I render the App nothing shows up on screen, but in the console I get the error “[object Error] {}” and I’ve done some research into the error, and the Error object, but still can’t figure out what it means or what’s causing it. I think it has to do with using the .map() method wrong but I’m not sure, and if so I’m not sure what I’m doing wrong. Any help is appreciated.

Thank you!

Your code so far
https://codepen.io/Busterfreeze/pen/YzyaNGx?editors=1111

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36.

Challenge: Build a Drum Machine

Link to the challenge:

Did you see the message below [object Error] {}?

ReferenceError: Pad is not defined

That is telling you what the error is. Your are using Pad in your code but you haven’t defined Pad. You have defined Pads though.

1 Like

Thank you so much! I should have known to check the Dev Tools for more info. I appreciate the help! <3