How to become a debugging boss
I attended my first conference, and as I gather the information from the different talks I went, so I don’t forget but mostly so you can learn it as well, I wanted to start with this one. This talk was by codeSTACKr, go check all his content out!
I’ve always thought the only option was Console.log() and even though it was very hard for me to know where to use it to make the most out of it. So now that I think I’m getting the hang of it turns out there are several more options to learn but to be honest it will make my life way easier.
Using { } in Console.log()
I want to start with this one because I think it’s very useful and I use it all the time when I have a million console.logs all over the place.
I’m sure you’ve done something like this before to assign a label👇
let name = "Ash"
let surname = "Ketchum"
console.log("name:", name,"surname:", surname)
But you can also do this:
console.log({name, surname})
Easy right? A good way to use it is when you have an object and want to have it labelled: