Skip to the content.

Javascript_notebook_ipynb_2_

const person = {
    name: "Ava",
    currentClasses: ["Statistics", "US History", "Computer Science", "American Literature", "Physics"],
    interests: ["Watching TV", "Going to the Beach", "Swimming"],
};

console.log("Initial Object:", person);

person.currentClasses.push("Art");
person.interests.pop();

console.log("Updated Object:", person);
console.log("Updated Current Classes:", person.currentClasses);
console.log("Updated Interests:", person.interests);

console.log(`Age Next Year: ${ageNextYear}`); 
console.log(`Age in Five Years: ${ageInFiveYears}`);
console.log(`Age Modulo 3: ${ageModulo}`); 

console.log("Type of name:", typeof person.name); 
console.log("Type of age:", typeof person.age); 
console.log("Type of currentClasses:", typeof person.currentClasses);