---
# System prepended metadata

title: Data Model of Jacky's Day

---

# Data Model of Jacky's Day
---

```javascript=

let me = {
  name: "Jacky Wu",
  energy: 200, 
  isHappyNow: true,
  muchWorkToDo: true,
  heartbeat: 80
}

let dayPhase = ["Morning", "Afternoon", "Night"]

// At the beginning of a new lovely day!
let currentDayPhase = dayPhase[0]

function beginEating() {
  heartbeat = 100,
  energy = energy + 50,
  isHappyNow = true,
}

let breakfast = ["egg", "bacon", "milk", "bread"]

beginEating(breakfast); // Time to eat breakfast to stay healthy!

me.energy -= 60; 
// Pack my stuff and going to work right now.

let myInternshipWork = [
  replyingEmail {
    isWorkloadHeavy: true,
    numEmailToReply: 30
    },
  runningCourse {
    isWorkloadHeavy: false,
    typeOfCourse: 6,
    courseContent: "Language Learning Courses"
  } 
]

let numOfRepliedEmail = 0;
do {
  numOfRepliedEmail += 1;
} while (numOfRepliedEmail < 30); // I have 30 work emails to reply.

function workingMachine() {
  // I'll start finishing the work efficiently;
  me.heartbeat = 140;
  me.energy -= 100;
  me.isHappyNow: false;
}

workingMachine(Jacky); // Jacky is the workaholic now!

me.muchWorkToDo: false;

// The time has shifted to 13:00 now.
currentDayPhase = dayPhase[1];

beginEating(lunch); // Time to eat lunch to reenergize :)

// I'll pack my stuff and go back to TC to take an afternoon class.
let tcBuilding = [
  "Macy Hall",
  "Grace Dodge Hall",
  "Russel Hall",
  "Thompson Hall"
]

tcBuilding.push("528 Building")  // Oh I forgot one building!

let goPlace = tcBuilding[4] // I go to 528 Building for class.
me.energy -= 30;
me.heartbeat = 80;
me.isHappyNow = true;

// The time has shifted to 19:00 now.
currentDayPhase = dayPhase[2];

let myDinner = {
  food: ["mushroom soup", "pho", "meatball"],
  calories: 600,
  isVeryTasty: true,
}

beginEating(dinner); // Finally my favorite dinner time comes!

function toDoAtNight() {
  if muchWorkToDo = false
  then
    // Hang out with friends. Trick or treat!!!
    heartbeat = 130;
    isHappyNow = true;
  else
    workingMachine();
}

toDoAtNight(Jacky);  // Guess what to do at night...

let thingToDoBeforeSleep = [
  "take a shower",  
  "check my phone",
  "set an alarm clock",
  "go to bed"
]

sleep(Jacky);
// All work and no play makes Jacky a dull boy.
// Tomorrow is another day!
// Sweet dreams...

```

