Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How is the following code "wrong"?

  var foo = function() {
  } // parse error, semicolon expected
  test()
For completeness' sake, this example works:

  var foo = function() {
  }; // no error, parser continues
  test()


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: