While debugging an issue I executed the following in console of chrome browser
function(){ console.log('hi') }
I am getting following error
Uncaught SyntaxError: Unexpected token (
Could you please explain why is it returning error? It should print the value 'hi'. Thanks