how to fix Consol.log Script error is "undefined" ?
function LogException(e) {
if (window.console // check for window.console not console
&& window.console.log) window.console.log(e);
// Other logging here
}
try {
... // code throwing error
} catch (e) {
LogException(e); // works fine
}
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!