Please check this code


#1



This gives only "Sagar" after execution

var object1 = new Object();
var object2 = new Object();
var object3 = new Object();
object1.name = "Sudeep";
object2['age'] = 22;
object3.num = "sagar";


#2

Hi the console of CodeCademy log the last line .. so if you want to print the name and age you should do it like that (Add it under your code)

console.log(object1.name)
console.log(object2.age)
console.log(object3.num)

#3

Thank You brother :slight_smile: