trace-like func for javascript


/ Published in: JavaScript
Save to your folder(s)

If you're front-end, it's a hassle to check values and stuff. If you want to skip addons and such, this functions console.log's what you want


Copy this code and paste it in your HTML
  1. function trace(str) {
  2. try {
  3. console.log(str);
  4. } catch(e) {
  5. }
  6. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.