N Nam Lê Member Jan 12, 2022 #1 Is console log the same as print? Answer 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.
Is console log the same as print? Answer 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.