20
nirvan
7y

There are 2 types of developers. Console.log() and alert().

Comments
  • 0
    Also, to heck with those conditional breakpoints even
  • 2
    No, no one should ever alert()
  • 2
    I've never heard of anyone using alerts. Seems weird to inspect an object with alerts. Would the object even be formatted?
  • 1
    @Haxk20 you're telling me you use C for stuff most people do with JS? I've gotta see this. You must be a next level developer.
  • 0
    This practice is only valid if every log starts with "Achtung!".
  • 1
    alert(JSON.serialize(object));

    good thing about alert is that it pauses execution of script (but some browsers now think that it is good idea to remove such feature)
  • 1
    I use prompt, and then I tell him what he should do with his error.
  • 2
    @MaxDeepField if pausing execution is something you prefer, how about checking out Chrome's "debugger" statement? Does exactly that.
Add Comment