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

Skip to content

Commit bf5bca3

Browse files
author
Noer Paanakker
committed
clarified week 2 project description
1 parent 3d2b465 commit bf5bca3

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Week2/MAKEME.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ In this section you will be doing interactice exercises, that will allow you to
2727
Consider the following string:
2828

2929
```js
30-
let myString = 'hello,this,is,a,difficult,to,read,sentence';
30+
let myString = "hello,this,is,a,difficult,to,read,sentence";
3131
```
3232

3333
1. Add the variable to your file.
@@ -82,7 +82,7 @@ You're at a party and you feel thirsty! However, you've got 5 friends who are al
8282
There are 3 different types of drinks:
8383

8484
```js
85-
const drinkTypes = ['cola', 'lemonade', 'water'];
85+
const drinkTypes = ["cola", "lemonade", "water"];
8686
```
8787

8888
2. Create a loop that runs 5 times. On each iteration, push a drink into the `drinkTray` variable. The `drinkTray` can only hold at most two instances of the same drink type, for example it can only hold 2 colas, 2 lemonades, 2 waters.
@@ -119,13 +119,19 @@ In order to speed up development you'll be using a CSS framework: [Bootstrap 4](
119119

120120
> 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.
121121
122-
In this project you'll write a script that calculates grades, based on the American grading system! Let's say a student did a test and they got a 60 out of 100, this script will:
122+
In this project you'll write a `function` that calculates grades, based on the American grading system! Let's say a student did a test and they got a 60 out of 100, this `function` will:
123123

124124
1. convert the score into a percentage
125125
2. calculate what grade corresponds with that percentage, and
126126
3. shows in the command line the result: the grade and the percentage
127127

128-
When writing the script, make use of the following grade scores:
128+
In this example this is what we would expect the `function` to return in the command line:
129+
130+
```markdown
131+
You got a B (85%)!
132+
```
133+
134+
When writing the `function`, make use of the following grade scores:
129135

130136
```markdown
131137
Grade A (90% - 100%)
@@ -144,12 +150,6 @@ These are the requirements your project needs to fulfill:
144150
- Make the return value of the function a template string, so you can insert variables!
145151
- Use `node` from the command line to test if your code works as expected
146152

147-
This is what the script is expected to return in the command line:
148-
149-
```markdown
150-
You got a B (85%)!
151-
```
152-
153153
Good luck!
154154

155155
## **SUBMIT YOUR HOMEWORK!**

assets/.DS_Store

6 KB
Binary file not shown.

assets/while-loop.jpg

19.1 KB
Loading

0 commit comments

Comments
 (0)