u/jcl274 wrote (the comment Michael replied to):
definitely the typo here is an issue, but isn’t the lack of curly braces around the arrow function body another issue?
u/michaelnovati replied ·
yeah this would run but it won't work as expected.
the onclick and line following will be set as the onclick handler:
menu.onClick = () => first line;
BUT the second line under there will just run outside of a function in the main closure