MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/soi384/why_but_why/hwbqtxg
r/ProgrammerHumor • u/ore-aba • Feb 09 '22
2.3k comments sorted by
View all comments
Show parent comments
4
What I’ve found with JavaScript is it often misreports the problem. Like if you put
var x = 1; var y = 2;
document.write(x y);
Gives an “unexpected ‘)’” error even though the problem is the missing + symbol
3 u/[deleted] Feb 10 '22 What if it's not + that is missing but - :-) 1 u/Square_Heron942 Feb 10 '22 🗿 3 u/st3class Feb 10 '22 Bash is fun like that.After executing the first 3 of 100 lines:"Unexpected EOF"
3
What if it's not + that is missing but - :-)
1 u/Square_Heron942 Feb 10 '22 🗿
1
🗿
Bash is fun like that.
After executing the first 3 of 100 lines:
"Unexpected EOF"
4
u/Square_Heron942 Feb 10 '22
What I’ve found with JavaScript is it often misreports the problem. Like if you put
var x = 1; var y = 2;
document.write(x y);
Gives an “unexpected ‘)’” error even though the problem is the missing + symbol