without console.log
(!!!)
by Sher Minn Chong / @piratefsh at talk.js
Do you use the Chrome devtools debugger when debugging gnarly JavaScript?
— Sher Minn C. (@piratefsh) September 2, 2016
console.log
everywhereadapted from Advanced JavaScript debugging.
console.log()
tips
console.log('coconuts:', numCoconuts, 'onions:', numOnions);
//=> coconuts: 123 onions: 45
function Person(firstName, lastName) {
this.firstName = firstName;
this.lastName = lastName;
}
var john = new Person("John", "Smith");
var jane = new Person("Jane", "Doe");
var emily = new Person("Emily", "Jones");
console.table([john, jane, emily]);
other goodness: MDN examples