MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codehs/comments/173dawv/why_am_i_getting_this_error/
r/codehs • u/VastLanguage980 • Oct 08 '23
7 comments sorted by
2
way i can explain it is youre putting calculate in function form when its a variable
2 u/Thayrald Oct 08 '23 also you dont need to put it twice in start as its already gonna run outside of the start
also you dont need to put it twice in start as its already gonna run outside of the start
Can i ask you a question :(, how do i find the size of a canvas in codehs
2 u/Thayrald Nov 06 '23 Do u still need help? I know how 3 u/Nathan_________34 Nov 17 '23 I figured it out! Thanks tho
Do u still need help? I know how
3 u/Nathan_________34 Nov 17 '23 I figured it out! Thanks tho
3
I figured it out! Thanks tho
1
You're trying to use a variable as a function. Use function calulate(){ Code(); } Instead, as that's how a function is made. Also use function start(){ Code(); } Since it makes the code easier to read as it is automatically called
2
u/Thayrald Oct 08 '23
way i can explain it is youre putting calculate in function form when its a variable
2
u/Nathan_________34 Oct 20 '23
Can i ask you a question :(, how do i find the size of a canvas in codehs
1
u/Droxden Oct 09 '23
You're trying to use a variable as a function. Use function calulate(){ Code(); } Instead, as that's how a function is made. Also use function start(){ Code(); } Since it makes the code easier to read as it is automatically called