---
# System prepended metadata

title: Data of my life

---

# Data of my life
```:javascript=
let name = "Haorui Huang"    
let age = 22
let lawKnowledge = 10 
let energy = 10
let readyTo Study = false 

// Haorui is a student studying LSAT to enter law school
// If his law knowledge is greater than 50, he can get a good score on the test


get.time(); //<<< 9am
// He wakes at 9am 

name="Haorui Huang"
energy = 10
readyToStudy=true

//After he wakes up at 9am, he is ready to study LSAT with an energy level of time

let studyMaterial = {
open = true
notebookOpen = true 
testNumber= 80

}

// Haorui has opened his notebook and is ready to do the mock tests.

let hoursStudied=0

function testKilling(){
    if energy = energy-hoursStudied
    then testNumber = 80-energy
         lawknowledge +=1
    
}
// It takes 1 unit of energy to study for 1 hour. It also takes 1 hour to finish a test. Law Knowledge will increase with studying

let hoursStudied= 8

testKilling(); 
testKilling();
testKilling();
testKilling();
testKilling();
testKilling();
testKilling();
testKilling();

//Study from the fisrt hour to the eighth hour

name = "Haorui Huang"
energy = 2
lawKnowledge= 18

// after 8 hours of study, Haorui has 2 units of energy left and gained 8 extra units of law knowledge.

sleep();

// after continous study, Haorui falls asleep
```
