by stack_framer · 8mo ago · 0 comments
Semicolon FUD is for the birds.
return
x
Which does not return. It returns undefined.Typescript helps a lot with that. A linter will probably flag it as well. Still, JS went way out of its way to accept just about anything, whether it makes sense or not.
return 0,
x;
I find this a mildly amusing discovery for myself because it took me a long time to figure out a useful use for the comma-operator.
But " " still exist (for us/mere mortals) because few can write so clearly.
I know nothing about coding (beyond changing others' variables to fit my installation), but would imagine this parallels many coding environments (e.g. yours).