There are several reasons, one of them is that the console log casts the data, forces the data to convert to another type to be able to display them on the screen, all the data is converted to a primitive String.
Another reason is that people often forget to remove the console.logs in various parts of their code.
Just open a debug tab on a web page and see how people forget to remove console.log in production.
Using console.log could be considered an anti-pattern that can turn into a big ball of mud.
Third reason it is very easy to use a debbuger nowadays.
There are many articles that talk about this topic.
Why comprehend using the debug for bigger logical bugs but for smalk fixes console.log is just more conveniet
There are several reasons, one of them is that the console log casts the data, forces the data to convert to another type to be able to display them on the screen, all the data is converted to a primitive String.
Another reason is that people often forget to remove the console.logs in various parts of their code.
Just open a debug tab on a web page and see how people forget to remove console.log in production.
Using console.log could be considered an anti-pattern that can turn into a big ball of mud.
Third reason it is very easy to use a debbuger nowadays.
There are many articles that talk about this topic.
Thanks for your detailed answer. But some points: