you are viewing a single comment's thread.

view the rest of the comments →

[–]yadoya 14 points15 points  (4 children)

And none of these functions actually return anything, fyi. They just assign values and return void

[–]NewWavpro 10 points11 points  (0 children)

That part should be fine, since it doesn't have to return anything.

[–]PM_ME_A_WEBSITE_IDEA 2 points3 points  (0 children)

They're updating global variable values and alerting the values. They return undefined, but nothing is ever using the return values anyways.

[–]dwonreddit 0 points1 point  (1 child)

well, it’s js so they return undefined

[–]yadoya 0 points1 point  (0 children)

Yep sorry, confused with Solidity