Code: Select all
var console = {
log: debugPrint,
warn: debugPrint,
error: debugPrint,
debug: debugPrint,
logJS: function() {
var arr = [];
for (var key in arguments)
arr.push(JSON.stringify(arguments[key]));
debugPrint(arr);
}
};
setTimeout(function() {
console.log("timeout 1");
}, 1000);
setTimeout(function() {
console.log("timeout 2");
}, 1000);