---
# System prepended metadata

title: 'Doodle: Data Model of My Life'

---

# Doodle: Data Model of My Life

```:javascript=
let name = "Carol";
let power = 100;
let age = 23;

// Carol is a normal student by day and the leader of a squad of cats by night.

getTime(); // <<< 10am

// Carol goes to campus to take course MSTU4083. Her teammate Jacky takes a seat next to her. They are going to finish a projct tomorrow.

let campus = {
  inPeril: false,
  monsterLevel: 0,
  threatType: "none",
}

//Jacky is a normal student by day and a evil monster by night. At night, he shows his true form and do bad things. He usually appears in the garbage bin in the campus at night. 

let monsterName = "Jacky";
let monsterIdentify = "Carol's teammate";
let isIncognito = true;

getTime(); // <<< 12am

 
// When the clock strikes 12, Carol reveals her cat leader identity.

let campus = {
  inPeril: false,
  threatLevel: 0,
  threatType: "none",
  catMember: ["a-present","a-present","a-present"]
  garbageBin: ["a-empty","a-empty","a-empty"]
}

// Carol makes sure that every cat member of the squad is present. Then the squad check garbage bins in the campus to find the monster.

let numChecked = 0;

function checkGarbageBin {
  // if the GarbageBin is empty
  // then the squad will continue check next garbage bin.
  // else the squad will fight the monster
  numChecked++;
}

function fightMonster() {
  if power > campus.threatLevel
  then
    campus.inPeril = 0;
    campus.threatLevel = 0;
    threatType = "none";
  else
    power = power - 100;
}

checkGarbageBin; // First check, all is empty.
checkGarbageBin; // Second check, all is empty.

All garbage bins seem empty. But suddenly the monster appears and tries to attack Carol.

campus.inPeril = true;
campus.threatLevel = 100;
campus.threatType = "monster";

// Carol avoid the attack. She quickly defeats the monster, ends the fight. The campus is calm again, but Carol needs to do the project on her own tomorrow.

campus.inPeril = False;
campus.threatLevel = 0;
campus.threatType = "none";

sleep();
 
// Carol sleeps to prepare for tomorrow's project work.
