Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I shortened console.log() with a function I use in development called c()

    function c(x){
        console.log(x || "!");
    }
It's pretty helpful, I can quickly throw the line c(); anywhere just to log if it happens when/if it should. And it stays out of your way, unlike alert() which is terrible and should be deprecated.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: