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
Written by Javier Guerra
Related protips
2 Responses
Cool, thanks!
Only for me it's console.assert(), not assertion. Using Chrome Version 25.0.1364.172
over 1 year ago
·
@dpashkevich tnx... I was so exited... that I misspelled :-(
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Chrome
Authors
Did you know?
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#