
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Difference between console.dir and console.log in javascript?
The console method log() displays the toString representation of any object passed to it.
The Console method dir() displays an interactive list of the properties of the specified JavaScript object. The output is presented as a hierarchical listing with disclosure triangles that let you see the contents of child objects.
- Related Questions & Answers
- Difference between console.log and process.stdout.write in NodeJS
- JavaScript console.log() with Example
- Difference between Java and JavaScript.
- Difference between TypeScript and JavaScript
- Difference between JavaScript and Php
- Difference Between PHP and JavaScript
- Difference between == and === operator in JavaScript
- Difference between JavaScript deepCopy and shallowCopy
- Difference between var and let in JavaScript
- Difference between != and !== operator in JavaScript Program
- Difference Between Static and Const in JavaScript
- What is the difference between == and === in JavaScript?
- Difference between window.location.href, window.location.replace and window.location.assign in JavaScript?
- Difference between shift() and pop() methods in Javascript
- Difference between push() and unshift() methods in javascript
Advertisements