Console in IE Will Break Code

While creating a javascript app yesterday I discovered the IE dislikes the console tool.  My app was working perfectly in Firefox and Chrome, but would not work for anything in IE unless the Developer Tools were open.  After some research and a little trial-and-error I found that it was a console.log() command that was breaking the app.

For reference, using a check to see if console was available broke the code as well.  Example:

1
if(console){console.log(error);}

 

The post Console in IE Will Break Code appeared first on Sophrosyne Life.

Follow me

Submit a Comment