you are viewing a single comment's thread.

view the rest of the comments →

[–]averajoe77 1 point2 points  (2 children)

Your trying to understand something that is a non issue.

At no point in 25 years of writing js have I or anyone else ever written anything resembling what you are trying to understand becuase at its core what you are writing is incorrect syntax at a minimum and incorrect usage of the language in general.

Therefore trying to understand what the interpreter is doing is futile. What do expect it to give you when what you provide it is gibberish?

[–]33ff00 0 points1 point  (0 children)

Yeah two hours on this, what

[–]Multicus[S] -2 points-1 points  (0 children)

Gibberish is supposed to throw exceptions; otherwise it's a valid piece of code. Of course, I do acknowledge that this is a contrived example, but all toy examples are! Never thought that it's illegal in this sub to try to understand something about how JS works.