Is console log the same as print?

Nam Lê

Member
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.
 

Tìm kiếm

Back
Top