32

Possible Duplicate:
What are the rules for Javascript's automatic semicolon insertion?

I read an article discussing the semicolons in Javascript, and its author spoke about the ASI.

I don’t know what he’s talking about. Can anyone can explain it to me?

Thanks.

Community
  • 1
  • 1
ptiswitz
  • 345
  • 1
  • 3
  • 5
  • ASI stands for Automatic Semicolon Insertion. – Gumbo Oct 04 '11 at 16:45
  • Did the article use the term ASI without first defining it? Do you have a link? – user113716 Oct 04 '11 at 16:45
  • Automatic Semicolon Insertion [http://stackoverflow.com/questions/2846283/what-are-the-rules-for-javascripts-automatic-semicolon-insertion][1] [1]: http://stackoverflow.com/questions/2846283/what-are-the-rules-for-javascripts-automatic-semicolon-insertion – Widor Oct 04 '11 at 16:46
  • I suspect it’s [Automatic Semicolon Insertion](http://stackoverflow.com/questions/5232169/is-this-a-problem-with-asi-or-just-the-return-grammar). – Paul D. Waite Oct 04 '11 at 16:46

2 Answers2

32

Automatic Semicolon Insertion.

http://inimino.org/~inimino/blog/javascript_semicolons

genesis
  • 50,477
  • 20
  • 96
  • 125
pcalcao
  • 15,789
  • 1
  • 44
  • 64
2

Perhaps they're talking about Automatic Semicolon Insertion

Here's a question that mentions it: Is this a problem with ASI or just the return grammar?

Community
  • 1
  • 1
Tom Cerul
  • 1,773
  • 2
  • 13
  • 27