You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Week2/MAKEME.md
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
1. Practice the concepts
6
6
2. JavaScript exercises
7
7
3. Code along
8
-
4. PROJECT:
8
+
4. PROJECT: Grade calculator
9
9
10
10
## **1. Practice the concepts**
11
11
@@ -25,7 +25,7 @@ In this section you will be doing interactice exercises, that will allow you to
25
25
Consider the following string:
26
26
27
27
```js
28
-
let myString ="hello,this,is,a,difficult,to,read,sentence";
28
+
let myString ='hello,this,is,a,difficult,to,read,sentence';
29
29
```
30
30
31
31
1. Add the variable to your file.
@@ -80,12 +80,13 @@ You're at a party and you feel thirsty! However, you've got 5 friends who are al
80
80
There are 3 different types of drinks:
81
81
82
82
```js
83
-
constdrinkTypes= ["cola", "lemonade", "water"];
83
+
constdrinkTypes= ['cola', 'lemonade', 'water'];
84
84
```
85
85
86
-
2.
87
-
88
-
3. adsa
86
+
2. Create a loop that runs 5 times. On each iteration, push a drink into the `drinkTray` variable.
87
+
3. However, if there are already two instances of a `drinkType` then start with the next drink in the array.
88
+
4. Your `drinkTray` should contain 2 cola, 2 lemonade and 1 water.
89
+
5. Log to the console: "Hey guys, I brought a [INSERT VALUES FROM ARRAY]!" (For example: "Hey guys, I brought a cola, lemonade, cola, water, lemonade!")
89
90
90
91
## **3. Code along**
91
92
@@ -112,7 +113,7 @@ In order to speed up development you'll be using a CSS framework: [Bootstrap 4](
> Every week ends with a project you have to build on your own. Instead of getting clear-cut instructions, you'll get a list of criteria that your project needs to measure up to.
0 commit comments