8

I use console.log for debugging in JS, but I might try .alert as I feel that it could make me feel like a person tracking status of a rocket launch. You know, message appears saying "Stage 1 successfully completed. Ready to attempt connection to database. Good luck to you all." and if the program encounters an error it would say "It was a pleasure working with you all, gentlemen.", wait for 5 seconds and then crash.

Comments
  • 0
    Try step through debugging though.
  • 1
    Chrome dev tools and source maps. There's a learning curve but the time it saves you in the log run over console.log is worth it
Add Comment