The preceding !
takes the un-parseable statement, and allows it to to be parsed by the JS engine, which in turn returns true.
function(){}();
SyntaxError: Unexpected token (
!function(){}();
>>true
More Related Contents:
- What is wrong with this function
- javascript function doesn’t work when link is clicked
- Pass variables by reference in JavaScript
- How can I group data with an Angular filter?
- Is it wrong to place the tag after the tag?
- JavaScript/JQuery: $(window).resize how to fire AFTER the resize is completed?
- Parse DateTime string in JavaScript
- Count number of matches of a regex in Javascript
- canvas.toDataURL() SecurityError
- Concise way to compare against multiple values [duplicate]
- Google Map API v3 — set bounds and center
- How can I disable a browser or element scrollbar, but still allow scrolling with wheel or arrow keys?
- Where would I use a bitwise operator in JavaScript?
- Common sources of unterminated string literal [duplicate]
- JavaScript data formatting/pretty printer
- Javascript Method Naming lowercase vs uppercase
- How can I view an object with an alert()
- How to open a new tab in CasperJS
- JavaScript window.location does not set referer in the request header
- Is there any way to accelerate the mousemove event?
- Search a JavaScript object
- How do I read binary data to a byte array in Javascript?
- Using JavaScript what’s the quickest way to recursively remove properties and values from an object?
- Solving TicTacToe with minimax algorithm in Javascript
- IBAN Validation check
- JavaScript Regex to match a URL in a field of text
- How to mock React component methods with jest and enzyme
- How to sum elements at the same index in array of arrays into a single array?
- Angular.js: Is .value() the proper way to set app wide constant and how to retrieve it in a controller
- Can I prevent history.popstate from triggering on initial page-load?