Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit adf581a

Browse files
author
Noer Paanakker
committed
finished Week 2 makeme
1 parent 49926d6 commit adf581a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Week2/MAKEME.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
1. Practice the concepts
66
2. JavaScript exercises
77
3. Code along
8-
4. PROJECT:
8+
4. PROJECT: Grade calculator
99

1010
## **1. Practice the concepts**
1111

@@ -25,7 +25,7 @@ In this section you will be doing interactice exercises, that will allow you to
2525
Consider the following string:
2626

2727
```js
28-
let myString = "hello,this,is,a,difficult,to,read,sentence";
28+
let myString = 'hello,this,is,a,difficult,to,read,sentence';
2929
```
3030

3131
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
8080
There are 3 different types of drinks:
8181

8282
```js
83-
const drinkTypes = ["cola", "lemonade", "water"];
83+
const drinkTypes = ['cola', 'lemonade', 'water'];
8484
```
8585

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!")
8990

9091
## **3. Code along**
9192

@@ -112,7 +113,7 @@ In order to speed up development you'll be using a CSS framework: [Bootstrap 4](
112113

113114
- [Weight Converter App](https://www.youtube.com/watch?v=7l-ZAuU8TXc)
114115

115-
###** 4. PROJECT: Grade calculator**
116+
## **4. PROJECT: Grade calculator**
116117

117118
> 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.
118119

0 commit comments

Comments
 (0)