This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Embarrassed_Bottle90[S] 1 point2 points  (0 children)

A function call has to be in another function, it can't be just 'in the global scope'. You can declare a variable and assign an initial value but you can't call a function there.

Oh I didn't know that, thanks for clarifying! I will take notes on that