---
# System prepended metadata

title: Data of My Life

---

# Data of My Life
Weihao Chen & Anqi Wang

```javascript=

let name = "Big Head";
let magicPoint = 0;
let isAware = false;//unaware of super power
let age = 21;
let isCollegeStudent = True;

//Big Head is a normal college student and not aware of that he has capability to use magic.

getTime();// <<< 12am

// Today is Big Head's 22nd birthday. 

let candle = { nums: 1, isKindle: true };
candle.iskindle: false;//candle off
candle.nums = candle.nums - 1;//candle removed

// After blowing off the candle for his 22nd birthday, he obtains the ability of spatial travel!

name = "Omnipotent Big Head";
magicPoint += 100;//Big Head has magic power now.

let dimensionDoor = {
    open: false,
    destination: "none";
}

function applaudHisHands() {
    if magicPoint > 0
    then 
        dimensionDoor.open = true;//dimension door opens
        magicPoint = magicPoint - 50;//dimension door opening once consumes 50 magic points.
    else
        magicPoint -= 0;//No super power and magic point left.
        dimensionDoor.open = false;
}

// He applauds his hands to celebrate his birthday, and a dimension door just appears in front of him. He realizes that hand clapping is the key to call out that door.

let numOfTravelled = 0;

function spatialTravel() {
    // If he has enough magicPoints
    // then he can do a spatial travel to any place he wants to go.
    // else he will be sent back to the reality (his room) and can not travel to other places.
    numOfTravelled++;
}

//Suddenly, he noticed that he has been transfered to the first place pops into his mind — HongKong.

spatialTravel(); //Spatial travel for the first time
dimensionDoor.destination = "HongKong";
const foodinHK = ["Steamed Buns", "Beef Noodle Soup", "Dumplings"];//He feels starving and sees three kinds of HongKong styled cuisines by the street.
function refuel(){
    //He desides to select one to get some energy.
    //He takes a seat.
    eatDumplings(){
    //He chooses dumplings.
    let Dumplings = {nums: 10};
    Dumplings.nums -= 0;//He eats them all and gets ready to his next journey.
}}

applaudHisHands();//Omnipotent Big Head uses his power again.

spatialTravel(); //Spatial travel for the second time    
dimensionDoor.destination = "Hawaii"; 
// He feels really hot and wants to leave this place immediately.  

applaudHisHands();
//However, Omnipotent Big Head has no magic point left and the dimension door automatically sends him back to the default location (his own room).

name = "Big Head";//Omnipotent Big Head turns back to Big Head.

sleep();

//Big Head feels exhausted after this surprising day and he decides to have a sleep then see what will happen in the next day.    
```