Question regarding 'automatic printing'


Hi everyone! I have a question regarding this exercise.

Why is {"name":"timmy","age":6} automatically printed to the console when I haven't even asked it to do so? It is only Timmy's values that print. :confused:

Thank you in advance

// Our person constructor
function Person (name, age) { = name;
    this.age = age;

// Now we can make an array of people
var family = new Array();
family[0] = new Person("alice", 40);
family[1] = new Person("bob", 42);
family[2] = new Person("michelle", 8);
family[3] = new Person("timmy", 6);
// add the last family member, "timmy", who is 6 years old


CA checked the code which are you given and sometimes we see something from the Interpreter in the console.

No reason to be worry about :slight_smile:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.