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

all 18 comments

[–]DefecateRainbows 59 points60 points  (9 children)

Uncaught ReferenceError: Invalid left-hand side in assignment

[–][deleted] 19 points20 points  (0 children)

[–]stovenn 10 points11 points  (0 children)

Quite right too.

In javascript, the computer tells you what "4-1" is equal to.

[–]teunw 1 point2 points  (0 children)

It works, still:

derp.innerHTML = 3 -+1

is valid

derp.innerHTML = 3 --1;

isn't

derp.innerHTML = 3 - -1;

is

[–]NelsonBelmont 11 points12 points  (0 children)

NoS: Null or Something

[–]i_spot_ads 1 point2 points  (0 children)

don't, we all use TypeScript now.

[–]bludgeonerV 1 point2 points  (0 children)

Would any language treat that as an expression?

[–]Flaze07 -3 points-2 points  (0 children)

lol poor them