---
# System prepended metadata

title: Data of My Life
tags: [' doodle assignment', mstu5003]

---

---
tags: mstu5003, doodle assignment #2
---

# Data of My Life

---

```:javascript=

let name = "Soyoung Moon";
let environment = {isDark : true, dateOfMonth : 30};
let isTimeTraveler = true;
 
// Soyoung Moon is a normal student but has an ability to travel the time only once a month when the Moon is new. 
 
const date = getDate(); // <<< 30th of the month
 
// When the Moon loses its light, she should sleep  before midnight. 
 
name = "Ssony-Long-Legs";

let georgewashingtonbridge = {
  inPeril: false,
  threatLevel: 10, // max=100
  threatType: "none",
  howDoPeopleFeel: ["traffic","stress","wannagohome"]
} 
let franceparis = {
  inPeril: false,
  threatLevel: 10, // max=100
  threatType: "none",
  howDoPeopleFeel: ["fantasy", "busy"]
} 
let haiti = {
  inPeril: false,
  threatLevel: 10, // max=100
  threatType: "none",
  howDoPeopleFeel: ["hot","nature","calm"]
} 
let locations = {geo, fran, haiti};
// getAReport
function getReport(){
    for (let i = 0; i < locations.length; i++) {
        if locations[i].threatLevel >= 80
        then 
            return locations[i];     
    }
    return "none"
}
function solveSituation(location, name) {
    location.inPeril = false;
    location.threatLevel = 0;
    location.threattype = "safe";
    location.howDoPeopleFeel = ["calm"];
}

location = getReport(); // report none
// normal // a few monts later

locations[2].inPeril = true;
locations[2].threatLevel = 80;
locations[2].threattype = "danger";
locations[2].howDoPeopleFeel = ["sad", "fear","anxious"];
location = getReport(); // haiti
solveSituation(locataion, name);
sleep();

// She leaps into the past to save people's live. Today, she traveled to 2019 winter when the George Washington Bridge were closed due to snow storm. 
 

```