Debugging Tricks for Frontend Developers: CSS Border and Console Log

These two simple debugging tricks will save you a lot of time if you're a front-end developer: 😊 1. * { border: 1px solid red; } in CSS 2. console.log() in JavaScript I can't even tell you how many times these techniques have helped me avoid spending lots of time fixing problems in my code. Visit w3schools.com JavaScript Mastery to Learn Programming! 👈 #frontenddeveloper #debugging #javascriptdeveloper #csstrick #RahulChoudhary

  • No alternative text description for this image

Thanks for tagging us and spreading the word! 🚀

Just a little over *:hover{ border : 1px solid red;} *{ border : 1px dotted red; } As for log error or exception - error,info,warn object array or map table, dir, debug, You probably won't use group unless you're writing a library But worth working with it.

I've never even learned how the debugger works because I can just console.log() everywhere and that tells me where the problems are and what state the buggy code is in.

Bg-red-900 text-red-900

Like
Reply

1px solid red 😂

Like
Reply

I thought I was the only one who did this, but no.😅😅

See more comments

To view or add a comment, sign in

Explore content categories