Chapter 4 - adishap/advanced-JS-console-logging GitHub Wiki
Proper use of console.assert in JavaScript
var foo = undefined;
//much later
console.assert(foo,"foo wasn't set");
//helpful utility funct //not to use as false sense of security but worth to know it...
designed to implement below function if(!foo){ console.error("foo wasn't set"); }
useful but doesn't do anything.. makes u feel that handling err but u r not