It may seem like a trivia question but my class is wondering why. We understand that console.log is great for displaying the current “thing in memory” that a variable “points” to. It makes sense to put a show me what’s in a variable tool in the variable tool spot…but is it deeper?
I can’t think of anything.
The only advantage that the tool offers over console.log is that you can see values inside variables without modifying the code. You can add remove breakpoints and see values at different points as your code runs.