Hacker News new | past | comments | ask | show | jobs | submit login

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 | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: