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

There are other options here too but, given the OP, people seem to get irate when you use the features the language specification guarantees :'/

  alert(1)
  void function(){alert(2)}()


Nice, didn't know void can be prepended to a function definition.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: