- It’s not the methods which are
undefined
, but the variable drums itself! - You only declare it globally:
let drums;
- But you had never initialized it anywhere!
3 Likes
undefined
, but the variable drums itself!let drums;