Skip to content

Commit eb9a6ab

Browse files
Merge pull request #44 from HackYourFuture-CPH/spelling
Fix a few spelling errors
2 parents ff590cb + 7ff7da7 commit eb9a6ab

File tree

21 files changed

+68
-68
lines changed

21 files changed

+68
-68
lines changed

legacy/javascript/homework-projects/guides/making-your-API-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If you already have such a repository, just go on to the next step.
3030

3131
![See the JSON file](../assets/API-guide-2.png)
3232

33-
❗Be mindful about your data format. Note wether you should use an object or an array of objects and form your file accordingly.
33+
❗Be mindful about your data format. Note whether you should use an object or an array of objects and form your file accordingly.
3434

3535
### Using the API
3636

legacy/javascript/javascript1/week1/homework.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Create a variable called `startupName` that will contain the created startup nam
110110
Using a random index (you choose) of the arrays and concatenation of strings, create and log the new startup name and the number of characters in it.
111111
An example could be: "The startup: "Easy Corporation" contains 16 characters"
112112

113-
Hint: you can use this code to generate a random number from 0-9, if you dont want to specify the indexes yourself.
113+
Hint: you can use this code to generate a random number from 0-9, if you don't want to specify the indexes yourself.
114114

115115
```js
116116
const randomNumber = Math.floor(Math.random() * 10);
@@ -124,7 +124,7 @@ To be continued...
124124

125125
## Step 4: Hand in Homework
126126

127-
We are going to be handing in homework using something called a **pull request (now PR)**. The reason for that is that **most companies use PR's** when they work with code. So you might aswell get used to it!
127+
We are going to be handing in homework using something called a **pull request (now PR)**. The reason for that is that **most companies use PRs** when they work with code. So you might as well get used to it!
128128

129129
Watch [this video](https://www.youtube.com/watch?v=JcT4wmK1VcA) to go through the same process as is documented here
130130

legacy/javascript/javascript1/week1/lesson-plan.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Lesson plan
22

33
- Focus on having lots of in class exercises.
4-
- DONT teach everything, let the students investigate topics on their own aswell!
4+
- DON'T teach everything, let the students investigate topics on their own as well!
55
- Focus on how to read documentation, google answers and google errors!!
66
- Teach towards the students being able to solve the homework
77

8-
Remember to add the code you wrote in the class to the relevant class branch's class work folder. If the branch has not been created just create and push it :) If you dont have access, write to one from the core team. You can see an example below!
8+
Remember to add the code you wrote in the class to the relevant class branch's class work folder. If the branch has not been created just create and push it :) If you don't have access, write to one from the core team. You can see an example below!
99

1010
To find examples of what teachers have taught before go to the class branches in the classwork folder, Fx [class 07](https://github.com/HackYourFuture-CPH/JavaScript/tree/class07/JavaScript1/Week1/classwork)
1111

legacy/javascript/javascript1/week2/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const randomNumber = Math.random();
7676
console.log(randomNumber); // logs out some number between 0 and 1
7777
```
7878

79-
Here `Math.random` is a function. To activate the function we call it using paranthesis `()`. When calling it we get a randomNumber! We now dont need to think about all the code it takes to create a random number in javascript, we simply call the function and get a random number. Code has been abstracted away for us!
79+
Here `Math.random` is a function. To activate the function we call it using parentheses `()`. When calling it we get a randomNumber! We now don't need to think about all the code it takes to create a random number in javascript, we simply call the function and get a random number. Code has been abstracted away for us!
8080

8181
Some functions is called with arguments fx:
8282

@@ -101,7 +101,7 @@ function checkItem() {
101101
}
102102

103103
// use the function by calling it using ()
104-
// If we dont call the function that code will NEVER EVER IN A MILLION YEARS run!
104+
// If we don't call the function that code will NEVER EVER IN A MILLION YEARS run!
105105
checkItem();
106106
console.log(todoItem);
107107
```
@@ -151,15 +151,15 @@ function sum(a, b) {
151151
const returnedSum = sum(5, 10); // the variable returnedSum captures the return value from calling the function!
152152
console.log(returnedSum); // logs 15
153153

154-
// If we dont return, we cannot capture the returned value!
154+
// If we don't return, we cannot capture the returned value!
155155
function sumNoReturn(a, b) {
156156
a + b; // no return!
157157
}
158158
const returnedSum = sum(5, 10);
159159
console.log(returnedSum); // logs undefined
160160
```
161161

162-
If we dont return anything from the function, it will automatically return `undefined`. This is the functions way of saying that nothing was returned.
162+
If we don't return anything from the function, it will automatically return `undefined`. This is the functions way of saying that nothing was returned.
163163

164164
### Calling a function on something
165165

legacy/javascript/javascript1/week2/homework.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This will create and checkout the branch so you are ready make commits to it
2626

2727
## Why should I even do this homework?
2828

29-
Functions and conditions are some of the basic building blocks of javascript. Functions ensure that we dont repeat ourselves when writing code. Conditions ensures that we can handle different cases when programming.
29+
Functions and conditions are some of the basic building blocks of javascript. Functions ensure that we don't repeat ourselves when writing code. Conditions ensures that we can handle different cases when programming.
3030

3131
If you struggle to do this weeks homework there are a couple of things to do:
3232

legacy/javascript/javascript1/week2/lesson-plan.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Lesson plan
22

33
- Focus on having lots of in class exercises.
4-
- DONT teach everything, let the students investigate topics on their own aswell!
4+
- DON'T teach everything, let the students investigate topics on their own as well!
55
- Focus on how to read documentation, google answers and google errors!!
66
- Teach towards the students being able to solve the homework
77

8-
Remember to add the code you wrote in the class to the relevant class branch's class work folder. If the branch has not been created just create and push it :) If you dont have access, write to one from the core team. You can see an example below!
8+
Remember to add the code you wrote in the class to the relevant class branch's class work folder. If the branch has not been created just create and push it :) If you don't have access, write to one from the core team. You can see an example below!
99

1010
To find examples of what teachers have taught before go to the class branches in the classwork folder, Fx [class 07](https://github.com/HackYourFuture-CPH/JavaScript/tree/class07/JavaScript1/Week1/classwork)
1111

@@ -118,7 +118,7 @@ function checkItem() {
118118
}
119119

120120
// use the function by calling it using ()
121-
// If we dont call the function that code will NEVER EVER IN A MILLION YEARS run!
121+
// If we don't call the function that code will NEVER EVER IN A MILLION YEARS run!
122122
checkItem();
123123
console.log(todoItem);
124124

@@ -148,7 +148,7 @@ function sum(a, b) {
148148
const returnedSum = sum(5, 10); // the variable returnedSum captures the return value from calling the function!
149149
console.log(returnedSum); // logs 15
150150

151-
// If we dont return, we cannot capture the returned value!
151+
// If we don't return, we cannot capture the returned value!
152152
function sumNoReturn(a, b) {
153153
a + b; // no return!
154154
}
@@ -256,9 +256,9 @@ const balance = 1000;
256256

257257
### Function
258258

259-
Create a function called `getCircleArea`. It should have the `radius` of the circle as parameter and return the circle area. What happens if we dont return anything in the function?
259+
Create a function called `getCircleArea`. It should have the `radius` of the circle as parameter and return the circle area. What happens if we don't return anything in the function?
260260

261-
Create a function called `celciusToFahreneit` it should have a parameter called `celcius`. It should return the temperature in fahrenheit.
261+
Create a function called `celsiusToFahrenheit` it should have a parameter called `celsius`. It should return the temperature in fahrenheit.
262262

263263
Try call the function and check with google if the function returns the right value.
264264

@@ -307,16 +307,16 @@ logString("hello", 3);
307307

308308
### Send emails
309309

310-
Imagine we work at a company. Peter from the HR department wants us to send out a couple of emails to some recepients. The only problem is that he sent us the email in a weird format: `[email protected]|[email protected]|[email protected]|[email protected]|[email protected]|[email protected]|[email protected]`
310+
Imagine we work at a company. Peter from the HR department wants us to send out a couple of emails to some recipients. The only problem is that he sent us the email in a weird format: `[email protected]|[email protected]|[email protected]|[email protected]|[email protected]|[email protected]|[email protected]`
311311

312-
Use the `sendEmailTo` function to send an email to all the recepients that we got from Peter.
312+
Use the `sendEmailTo` function to send an email to all the recipients that we got from Peter.
313313

314314
_Hint_ use the `.split` method and look up `iterating an array js for loop` on google.
315315

316316
```js
317-
// This function emulates sending emails to receipients
318-
function sendEmailTo(recepient) {
317+
// This function emulates sending emails to recipients
318+
function sendEmailTo(recipient) {
319319
// But really it only logs out a string
320-
console.log("email sent to " + recepient);
320+
console.log("email sent to " + recipient);
321321
}
322322
```

legacy/javascript/javascript1/week3/homework.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ logOutNotesFormatted(); // should log out the text below
185185

186186
Suddenly you get this great idea for making the note app even better!
187187

188-
Come up with a unique feature **you think would make this app better.** Write down the idea and see if you can implement it. If not dont worry :) If it is too hard to implement try and ask in the slack channel :)
188+
Come up with a unique feature **you think would make this app better.** Write down the idea and see if you can implement it. If not don't worry :) If it is too hard to implement try and ask in the slack channel :)
189189

190190
Try an **interactive version 💻 of your code** [here](https://codepen.io/dalsHughes/pen/poJGejX). Remember to insert your code in the top of the codepen :)
191191

@@ -244,7 +244,7 @@ Come up with one feature you think would be helpful for this program.
244244

245245
Optional
246246

247-
- Lets improve the `addActivity`, so that we dont need to specify the date, but the function automatically figures out what the date is. Check out this link: <https://stackoverflow.com/a/34015511>
247+
- Lets improve the `addActivity`, so that we don't need to specify the date, but the function automatically figures out what the date is. Check out this link: <https://stackoverflow.com/a/34015511>
248248
- Improve the `showStatus` function by only showing the number of actitivies for that specific day.
249249
- Create a function for calculating the activity a user has spent the most time on.
250250

legacy/javascript/javascript1/week3/lesson-plan.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Lesson plan
22

33
- Focus on having lots of in class exercises.
4-
- DONT teach everything, let the students investigate topics on their own aswell!
4+
- DON'T teach everything, let the students investigate topics on their own as well!
55
- Focus on how to read documentation, google answers and google errors!!
66
- Teach towards the students being able to solve the homework
77

8-
Remember to add the code you wrote in the class to the relevant class branch's class work folder. If the branch has not been created just create and push it :) If you dont have access, write to one from the core team. You can see an example below!
8+
Remember to add the code you wrote in the class to the relevant class branch's class work folder. If the branch has not been created just create and push it :) If you don't have access, write to one from the core team. You can see an example below!
99

1010
To find examples of what teachers have taught before go to the class branches in the classwork folder, Fx [class 07](https://github.com/HackYourFuture-CPH/JavaScript/tree/class07/JavaScript1/Week1/classwork)
1111

legacy/javascript/javascript1/week4/lesson-plan.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Lesson plan
22

33
- Focus on having lots of in class exercises.
4-
- DONT teach everything, let the students investigate topics on their own aswell!
4+
- DON'T teach everything, let the students investigate topics on their own as well!
55
- Focus on how to read documentation, google answers and google errors!!
66
- Teach towards the students being able to solve the homework
77

8-
Remember to add the code you wrote in the class to the relevant class branch's class work folder. If the branch has not been created just create and push it :) If you dont have access, write to one from the core team. You can see an example below!
8+
Remember to add the code you wrote in the class to the relevant class branch's class work folder. If the branch has not been created just create and push it :) If you don't have access, write to one from the core team. You can see an example below!
99

1010
To find examples of what teachers have taught before go to the class branches in the classwork folder, Fx [class 07](https://github.com/HackYourFuture-CPH/JavaScript/tree/class07/JavaScript1/Week1/classwork)
1111

@@ -45,7 +45,7 @@ Focus on
4545

4646
### Fibonacci Sequence
4747

48-
Given a specific number in the fibonacci sequence return the fibonachi number.
48+
Given a specific position in the Fibonacci sequence, return the Fibonacci number.
4949

5050
```js
5151
// 0, 1, 1, 2, 3, 5, 8, 13, 21, 34
@@ -96,7 +96,7 @@ console.log(sentimentScoreObject);
9696

9797
### Credit card number formatter
9898

99-
This is a very real world example of a problem i got at my previous work. I was tasked to implement one of the smart credit card input fields, where the credit card numbers are seperated with a space. Fx inputting 123456789 would show 1234 5678 9.
99+
This is a very real world example of a problem i got at my previous work. I was tasked to implement one of the smart credit card input fields, where the credit card numbers are separated with a space. Fx inputting 123456789 would show 1234 5678 9.
100100

101101
![Credit card formatter](assets/credit-card-formatter.gif)
102102

legacy/javascript/javascript2/week1/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Or when someone clicks "Close cookies" (event) we want to remove the cookie div.
132132

133133
Lets first try to create some js that waits for 2 seconds and the console.logs out "2 seconds has elapsed!"
134134

135-
In JavaScript we use the word eventlistener to listen
135+
In JavaScript we use an _event listener_ to listen:
136136

137137
```javascript
138138
setTimeout(function () {
@@ -149,9 +149,9 @@ setTimeout(fourSecondLog, 4000);
149149

150150
Now lets try and log out "button clicked!" when a button is clicked.
151151

152-
To check if a button gets clicked we use a what is called an eventlistener.
152+
To check if a button gets clicked we use a what is called an _event listener_.
153153

154-
Imagine a person listening to the click of a button and everytime he hears a click he yells out "CLICKED".
154+
Imagine a person listening to the click of a button and every time he hears a click he yells out "CLICKED".
155155

156156
```javascript
157157
const buttonElement = document.querySelector("button");

0 commit comments

Comments
 (0)