---
# System prepended metadata

title: Data of My Life

---

# Data of My Life
---
```:javascript=
// Xichen Li is alone in her apartment in New York, ready for bed.
let name = "Xichen Li";
let trueMemory = 0;
let world = {
    id:001,
    location: ["Home","New York"],
    time: ["12am", "Oct", "2022"],
    isAlone:true
   };

//Suddenly, she sees a sentence in front of her eyes and finds herself in total darkness. She feels frightened.
alert("Time is up!"); 
world = {
    id:000,
    location:"blackhole",
    time:"N/A",
    isAlone:true
};

//Gradually, she starts to recall who she really is and where she is from...
function recallMemory(){
    if (trueMemory < 100){
    trueMemory = trueMemory +1
    }
    else
    {alert("You've recalled everything!");
    }
    becomeCalm();
}

// The text in front of her eyes has changed. It asks her if she want to continue her original life, or wants to go to another universe. 
if(confirm("Time is up. Do you still want to live in this universe?")==true){
    world does not change;
    } else {
    world = prompt("Please tell me your next stop");
    }

// After determining the next stop. Xichen inputs how she would like to travel, i.e. the length and speed of her travel.
function multiply(length, speed) {
    let result = length * speed;
    return result;
}

//Xichen is traveling to her next stop. She gradually forgets about her true memories...
alert("You have entered " + world + " ." );
function clearMemory(){
    if (trueMemory < 100){
    trueMemory = trueMemory +1
    }
    else
    alert("You are ready...");
    function becomeCalm();
}

// She now arrives at the new universe. She checks the time, the new world and who she is.
getTime();
world = {
    id:002,
    location: "Wonowon",
    time: "@#$%",
    isAlone:false,
}

let profile={
    gender: "female",
    job:"warrior",
    specialAbility: "reading-mind",
    power:10
}

//Xichen updates her name. 
function updateName() {
    name = prompt('Enter a new name');
}

//Xichen walks around to explore the new world. When she is hungry, she eats some food.
function exploreNewWorld (){
//walking
//observing
//touching
    eatFood();
}

//She is now fully ready for her new advenure!