Question regarding 'automatic printing'


#1

Hi everyone! I have a question regarding this exercise.

https://www.codecademy.com/en/courses/spencer-sandbox/4/1?curriculum_id=506324b3a7dffd00020bf661#

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) {
    this.name = 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

#2

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:


#3

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