Tweaking console.assert in IE9

Today while writing some JavaScript I was using the console.assert method to work out the state of things at different points in time.
If you’re not familiar with console.assert here’s the method signature:
console.assert(expression, messag…

Today while writing some JavaScript I was using the console.assert method to work out the state of things at different points in time. If you’re not familiar with console.assert here’s the method signature: console.assert(expression, message[, object]) What this allows you to do is pass in an expression to be evaluated, a message to display when the expression is false and an optional object to dump. This is really useful if you’re writing large chunks of JavaScript and you can’t/ don’t want to attach the debugger (common if you’re working with timeouts and intervals), you can have the application assertion results to the console to be observed.
Print Share Comment Cite Upload Translate
CITATION GOES HERE CITATION GOES HERE
Select a language: