---
# System prepended metadata

title: Untitled

---


```javascript=

let name= "Chelsey Yao";
let location= "home";
let energymax= 100;

getTime(); // <<< 9am
 
// When it's 9 am, Chelsey would get up and start her day.

function alarmclock() {
    if energy > 50
    then 
    action = "wake up";
else 
    repeat until energy > 50
}

var time = "9:30 AM";
var energy = 50;
function makeBreakfast() {
  // Put bagel in toaster
  // WHILE waiting for bagel...
  makeCoffee();
}
let breakfast = ["latte","bagel","cream cheese","apple"];
  // after a good breakfast, Chelsey gains more energy.
var energy = 80;

function makeup(){
    //wear makeup and get dressed to be ready
};
var energy = 100;
//Once Chelsey put on make up, she is fully awake and ready for the rest of the day.

workout(){
    //if spend too much time workingout, Chelsey will get tired.
    if time > 30
    energy---
    else
        energy--
};
var energy = 70;
    
study(){
    //Chelsey needs to study for html everyday
    let studysession = {
  seriousLevel: 100,
  studyType: "finish homework",
  homework: ["tinker","doodle","CSS"];
        let numFinished = 3;
}
var energy = 70--;
    //she is really tired after finish all the work

}
    
dinner(){
    //she cooks depending on the ingredients
    const ingredients =["bacon","cream","mushrooms","pasta","egg","tomato"];

    function cookings(){
        //she decided to make carbonara.
      let ingredientsneeded = ingredients.pop();
        //tomato is not needed
    }
}
function drinks(){
    //she want to pick a drink with dinner
    const drinksinfridge = ["wine","tea","coldbrew","milk"];
    //she went with tea
    let drink = drinksinfridge[1]
}
//she was really tired after cooking
var energy = 30

when energy < 35
sleeps();
```
