r/learnjavascript • • Oct 11 '20

Wired way to learn javascript :D

Post image
466 Upvotes

30 comments sorted by

View all comments

Show parent comments

48

u/annathergirl Oct 11 '20

But why two a's after it? I'm not too savvy with JS but according to my bad logic there's one a too much.

8

u/VikaashHarichandran Oct 12 '20

I just tried this out, the picture is indeed correct.

That's because the string token after two consecutive symbol tokens will be considered as NaN by the lexer.

Correct me if I'm wrong.

3

u/densch92 Oct 12 '20

careerspressadvertiseblogTermsContent policyPrivacy policyMod policyReddit Inc © 2020. All rights reserved

Amkes sense then.

also why the fuck do I see the above text shit when i simply try to reply to VikaashHarichandran, isntead of the actual commen ttext? O_o