if I run the following code:
~ function() {
alert('I am new here');
}();
the page alerts: 'I am new here'. however if I try to run:
function() {
alert('I am new here');
}();
I get syntax error.
I can't find any explanation of tilde (~) that would explain this situation.