Question : console log vs print
Answered by : mk-photography
The only notable difference between the two is that, when printing an object, console. log gives special treatment to HTML elements, while console. dir displays everything as plain objects
Source : https://blog.logrocket.com/keeping-it-simple-with-the-javascript-console/#:~:text=The%20only%20notable%20difference%20between,displays%20everything%20as%20plain%20objects. | Last Update : Fri, 04 Nov 22