Skip to content

Instantly share code, notes, and snippets.

@getify
Created August 18, 2010 17:13
Show Gist options
  • Save getify/535466 to your computer and use it in GitHub Desktop.
Save getify/535466 to your computer and use it in GitHub Desktop.
(function(){
var abc = "123";
abc = 123;
})();
(function(){
var abc = "123';
abc = 123;
})();
@getify
Copy link
Author

getify commented Aug 18, 2010

Try these two snippets in http://jslint.com

JSLint will correctly error out on line 3 of the second snippet, saying "unclosed string".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment