Home HTML Hacks Data Types Hacks DOM Hacks JavaScript Hacks JS Debugging Hacks
%%js

var personalObj = {
    firstname: "Eshaan",
    lastname: "Kumar",
    age: 16,
    grade: 11,
    school: "Del Norte High School",
    city: "San Diego",
    classlist: ["AP English Language", "AP Calculus BC", "US History", "AP Physics C", "AP Computer Science Principles"],   
    sport: "Tennis",
    hobbies: ["hanging out with friends", "listening to music", "watching movies"],
    interests: ["computer science", "engineering"]
};
var age = 16;
var firstname = "Eshaan";

console.log(personalObj);

console.log("Object: mutating the interests array key to economics and finance");
personalObj.interests = ["economics", "finance"];
console.log(personalObj);

console.log("In 5 years I will be:");
console.log(personalObj.age + 5);

console.log("If Billy is half my age Billy is:");
console.log(personalObj.age/2);

console.log(typeof personalObj)
console.log(typeof age)
console.log(typeof firstname)
<IPython.core.display.Javascript object>