Answer to Question #37190 in AJAX | JavaScript | HTML | PHP for Vijayakumar

Question #37190
how to fix Consol.log Script error is "undefined" ?
1
Expert's answer
2013-11-26T09:49:49-0500
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS