I mostly run into one of two types of bugs: typing errors (good content, bad formatting) or I'll get to a point in coding where I can't figure out what's going on but what I want to happen isn't happening.
color with a "u" by accident somewhere? (This one gets non-US english speakers all the time)} and semicolons ; in the right place?Usually with CSS the problem is that I've been in a rush and typed something incorrectly, incompletely, or that I'm trying to apply styles into a codebase I don't fully know or understand, so I might be unaware of (all of) the rules already applying to the elements I'm trying to style and where those rules are located.
) or brace }?alert(), console.log(), or console.dir() on that thing…is it what I think it is?JavaScript is harder to debug than CSS since you can do the normal programming things like creating infinite loops and having type errors. I know there are browser tools for debugging JavaScript, but honestly most of the JS I write is the least important JS - it's cosmetic enhancement and extending HTML and CSS, rather than being application code that's doing something important - so usually I can manage to alert() and console.dir() my way through the types of roadblocks I run into as I'm learning!