%%js
// put your javascript code here (make sure to run it and check your outputs in the console)
var me = {
name: "Gabriel",
age: 16,
classes: ["American Literature", "US History", "Calculus", "CSSE"],
interests: ["Wakeboarding", "Videogames", "Flying"],
favoriteFood: "Crepes",
favoritePlace: "Minnesota",
};
console.log(me);
me.classes.push("Off Roll");
//add 10 to the age
me.age += 10;
//multiply the age by 2
me.age *= 2;
console.log("this is the result of adding 10 to my age, then multiplyiong age by 2: " + me.age);
//type of age
console.log("here is the type of age!!")
console.log(typeof me.age)
//type of my name!!!! :)))
console.log("here is the type of name!!")
console.log(typeof me.name)
//type of my classes...
console.log("here is the type of classes!!")
console.log(typeof me.classes)
//adding favorite number
me["favoriteNumber"] = 12;
//subract 2 from favoriteNumber
me.favoriteNumber -= 2;
//divide favoriteNumber by 2
me.favoriteNumber /= 5;
console.log("This is the result of subracting 2 from my favorite number and then dividing it by 5: " + me.favoriteNumber);
<IPython.core.display.Javascript object>