Prints JavaScript representations of the object.
Parameters |
Description |
object
|
JavaScript object to print.
|
var student = {
"name": "Niki",
"year": "Junior",
"major": "User Design"
};
console.dir(student);
{ name: 'Niki', year: 'Junior', major: 'User Design' }