Error: Not a function


Getting the “not a function” error. Seems to happen often and I just cant figure out the problem here. Can anyone shed some light?

Tips for getting help quickly!

You are trying to reference a sprite like a function in lines 35 and 37

if (10 < score) {
  } else {

Those should not have a set of () after them.
What are you trying to accomplish when the score is greater than 10 or less than 10?


I understand what you are saying. I will fix it.

Thank you for your help!