MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerAnimemes/comments/f4nf64/damm_you_java/fhuh189/
r/ProgrammerAnimemes • u/ihey8u • Feb 16 '20
21 comments sorted by
View all comments
Show parent comment
9
I found yesterday that javascript has no problem whatsoever with
var x = ;
But breaks if theres anything after it. Wtf
3 u/bucket3432 Feb 17 '20 I get a syntax error both in the browser (Firefox) and in Node as expected. Where are you testing this? 1 u/brickmack Feb 17 '20 In Firefox.Not sure if it threw an error in the console, but everything did run as expected anyway (though I had to check if the type of x was undefined before using it for anything)
3
I get a syntax error both in the browser (Firefox) and in Node as expected. Where are you testing this?
1 u/brickmack Feb 17 '20 In Firefox.Not sure if it threw an error in the console, but everything did run as expected anyway (though I had to check if the type of x was undefined before using it for anything)
1
In Firefox.
Not sure if it threw an error in the console, but everything did run as expected anyway (though I had to check if the type of x was undefined before using it for anything)
View all comments
Show parent comment
9
u/brickmack Feb 16 '20
I found yesterday that javascript has no problem whatsoever with
But breaks if theres anything after it. Wtf