Skip to content

Instantly share code, notes, and snippets.

@mplungjan
Created January 5, 2013 10:25

Revisions

  1. mplungjan created this gist Jan 5, 2013.
    13 changes: 13 additions & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    //if (!window.console) window.console={ log:function(str) { alert(str) } }
    if (!window.console)
    window.console={ log:function() {
    var text = [];
    for (var a,i=0;i<arguments.length;i++) {
    a=arguments[i];
    text.push(typeof a+": "+(typeof a == "object" ? a.toString():a));
    }
    alert(text.join('\n'))
    }
    }

    console.log("test",new Date())