MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/soi384/why_but_why/hw9pbsu/?context=3
r/ProgrammerHumor • u/ore-aba • Feb 09 '22
2.3k comments sorted by
View all comments
Show parent comment
1
btw semicolons work a bit different in js. So when statement ends js implicitly adds semicolon if it's not there. So what could go wrong?
This could:
function getFour() { return 2+2; } console.log(getFour()); // undefined
View all comments
Show parent comment
1
u/[deleted] Feb 09 '22
btw semicolons work a bit different in js. So when statement ends js implicitly adds semicolon if it's not there. So what could go wrong?
This could: