Commit b64ddcde authored by Shanelle Valencia's avatar Shanelle Valencia

Clean thy code

parent 3b94ad3f
......@@ -15,11 +15,17 @@ function todaysMood() {
let myMood = moodRandomizer();
let name = inputName();
document.write(`${name} is feeling ${myMood} today.`);
if (!name) {
alert("Please type your name!");
} else {
document.write(`${name} is feeling ${myMood} today.`)
}
if (myMood === "Friday vibez") {
alert("FRIDAY MOOD: 🕺🏻🕺🏻🕺🏻");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment