3 ms·
A typical response is return false Where the program returns undefined. I can only think of these examples as straw men. Not once did I run in to an ASI
by gherkinnn 7y ago
A typical response is
return
false
Where the program returns undefined. I can only think of these examples as straw men. Not once did I run in to an ASI bug.
- slimed 7y agoThank you. I have yet to see an example in this thread or anywhere else that did not fall into this category.
- fenomas 7y agoNote though, that this ambiguity doesn't really affect the whole "whether to use semicolons" debate either way. If anything, it's more likely to occur in code that does use semicolons than in code that doesn't.
- gherkinnn 7y agoQuite right. As do other examples.