main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/**
 * essentially how my week 7 would look like if I was a JS program
 */

var week7 = function() {

    /**
     * stress === anxiety
     * ego === confidence
     * excitement === happiness
     */

    var stress = 2,
        ego = 2,
        excitement = 4,
        day = 1,
        end = 5;
    var goals = ['flesh out tech talk', ' optimize stackstore'];

    // max mood level will be at 10

    while (day <= end) {
        stress++; // this makes sense to me
        day++;
    }

    // it's Friday, Friday, gonna get down on Friday, blah, blah, blah

    if (day === 5) excitement++;

    /**
     * INSERT MOOD CHANGES THROUGHOUT WEEK HERE
     */

    // Monday
    stress++;
    ego++;
    stress++;

    // Tuesday
    ego++;
    stress--;
    excitement--;

    // Wednesday
    excitement++;

    // Thursday
    ego++;
    excitement++;

    // Friday
    ego++;
    excitement++;
    excitement++;
    ego++;
    excitement--;
    ego -= 5;
    goals.push(" improve public speaking skills (perhaps through Toastmasters?)");

    console.log("--- Week 7 Mood Levels --\n> Stress aka Anxiety: " + stress + "\n> Ego aka Confidence: " + ego + "\n> Excitement aka Happiness: " + excitement + "\n> Goals: " + goals);

};

week7();
Native Browser JavaScript