Error: Not a function


#1

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!
#2

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

if (10 < score) {
    simpleBackground();
  } else {
    crazyBackground();
  }

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?


#3

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

Thank you for your help!