Why other values are not printed in editor.the ans is coming as '55455'?


#1

var object1 = {};
object1.name = 'Anushka';
object1.age = 30;
var object2 = {};
object2.gender = 'Female';
object2.language_spoken = 'English';
var object3 = {};
object3.dob = 27-04-1986;
object3.phone_no = 55455;


#2

The output is the last-nonDisplayed-action
55455
There is also the problem of
object3.dob = 27-04-1986;
which should be
object3.dob = "27-04-1986";

var object1 = {};
object1.name = 'Anushka';
object1.age = 30;
var object2 = {};
object2.gender = 'Female';
object2.language_spoken = 'English';
var object3 = {};
object3.dob = "27-04-1986";
object3.phone_no = 55455;

console.log(object1);
console.log(object2);
console.log(object3);

#3

thanks a lot.I got what mistake I have done