y0cuhw
Last Updated: February 25, 2016
·
616
· javierg
4eb78d8045ba86e164bd2141bc77cfe6

Chrome log assertions

You can use the console to add assertion messenges

console.assert(booleanCondition, "Failed Assertion.");

Will display an error only if booleanCondition evaluates to false.

More console Chrome tips @ http://goo.gl/MNYZd

Say Thanks
Respond

2 Responses
Add your response

4965
D42a7264714dee5006b9c99d2567a320

Cool, thanks!
Only for me it's console.assert(), not assertion. Using Chrome Version 25.0.1364.172

over 1 year ago ·
4975
4eb78d8045ba86e164bd2141bc77cfe6

@dpashkevich tnx... I was so exited... that I misspelled :-(

over 1 year ago ·