asked 216k views
2 votes
Why do we use console.log in javascript when changing variables?

asked
User Gnanz
by
7.8k points

2 Answers

3 votes
This usually helps to debug the code
answered
User Pixelpax
by
7.8k points
5 votes
It helps to debug the code. Instead of going through every line of code to find an error, using console.log can tell us where to look.
answered
User Mohamed Amin
by
7.8k points