I've just come across the use of !function
Can anyone explain to me why this works? I've never seen any javascript use this code before, and it's a difficult thing to search.
> !function(world) { alert('Hello ' + world); }('World');
true
> function(world) { alert('Hello ' + world); }('World');
SyntaxError: Unexpected token (
> (function(world) { alert('Hello ' + world); })('World');
undefined