2 ms·
Making them optional in javascript was a ridiculous idea. But since they are optional now, using them throughout our code won't help us for the example above:
by timknauf 18y ago
Making them optional in javascript was a ridiculous idea.
But since they are optional now, using them throughout our code won't help us for the example above: it would still wrongly return undefined because of the implied statement end. So it could be argued that semicolons provide a false sense of security in this new, semicolon-optional world. :^)