Welcome to EarSketch Q&A, where you can ask questions and receive answers from other members of the community.
Use the search bar in the top right corner to see if someone with similar questions as yours has already started a discussion about it. They may have already provided answers to your questions.

362 questions

332 answers

72 comments

614 users

Cannot read property 'push' of undefined

+2 votes

xpos = 100

ypos = 100
radius = 50
color = "#FF0000" #red
drawCircle(xpos, ypos, radius, color)

Error message >> TypeError: There is an error with the expected data type, Cannot read property 'push' of undefined on line 98

This code was working the other day but now produces the error above. Any help?

asked Mar 7 in errors by Boden_7 (130 points)

1 Answer

0 votes
If you are still having issues, can you post the complete sample code here so we can try to run it and see if we get this same error on our end?
answered Mar 8 by xfreeman2 (6,140 points)
...