window.console.log

The console is a global variable and can be used without the window prefix.

window.console.log 
console.log


You can define the function as an anonymous lambda function

catch(function(e) { 
   console.log(e)
});

Or you can just pass the function itself when the argument is the same

catch(console.log); 





© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited TopPrevNext