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: legacy/javascript/homework-projects/guides/making-your-API-guide.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ If you already have such a repository, just go on to the next step.
24
24
25
25
1. Once the repository has been made, head over to your terminal and clone that repository into a directory of your choosing.
26
26
2. Once the repository been cloned to your computer, open the project folder in VS Code.
27
-
3. Create a folder for your APIs or just create a file in the root of the repository. You might want to organize it into a folder (fx. “data”) if you plan to create more APIs in the future and/or if you plan to also host your site on Github Pages. In the case of your JS project, you would just copy and paste the array of objects that you have been using so far and perhaps add more objects to it, if needed.
27
+
3. Create a folder for your APIs or just create a file in the root of the repository. You might want to organize it into a folder (e.g. “data”) if you plan to create more APIs in the future and/or if you plan to also host your site on Github Pages. In the case of your JS project, you would just copy and paste the array of objects that you have been using so far and perhaps add more objects to it, if needed.
28
28
4. Once you are ready with your JSON file, add, commit and push the changes to `main` so that you have the file on your repository.
29
29
5. Head over to the repo on GitHub and verify that your file is there and that all is good.
Copy file name to clipboardExpand all lines: legacy/javascript/javascript1/week1/lesson-plan.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
8
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!
9
9
10
-
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)
10
+
To find examples of what teachers have taught before go to the class branches in the classwork folder, e.g.[class 07](https://github.com/HackYourFuture-CPH/JavaScript/tree/class07/JavaScript1/Week1/classwork)
11
11
12
12
If you find anything that could be improved then please create a pull request! We welcome changes, so please get involved if you have any ideas!!!
Copy file name to clipboardExpand all lines: legacy/javascript/javascript1/week2/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
-[ ] Global vs local scope
8
8
-[ ] For loop
9
9
10
-
Teaching note. Start off explaining functions with how to use a function fx explain why the Math.random function is smart, or Math.max.
10
+
Teaching note. Start off explaining functions with how to use a function e.g. explain why the Math.random function is smart, or Math.max.
11
11
12
12
## Relevant links
13
13
@@ -78,7 +78,7 @@ console.log(randomNumber); // logs out some number between 0 and 1
78
78
79
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!
80
80
81
-
Some functions is called with arguments fx:
81
+
Some functions is called with arguments, for example:
82
82
83
83
```js
84
84
constmaxNumber=Math.max(3, 5); // 3 and 5 are arguments
@@ -142,7 +142,7 @@ multiply(10 * 4);
142
142
143
143
##### Return value
144
144
145
-
Sometimes we want to get a value back when calling a function. Fx in the sum example. We want to call the function and get the sum back!
145
+
Sometimes we want to get a value back when calling a function. e.g. in the sum example. We want to call the function and get the sum back!
Copy file name to clipboardExpand all lines: legacy/javascript/javascript1/week2/lesson-plan.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
8
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!
9
9
10
-
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)
10
+
To find examples of what teachers have taught before go to the class branches in the classwork folder, e.g.[class 07](https://github.com/HackYourFuture-CPH/JavaScript/tree/class07/JavaScript1/Week1/classwork)
11
11
12
12
If you find anything that could be improved then please create a pull request! We welcome changes, so please get involved if you have any ideas!!!
13
13
@@ -38,7 +38,7 @@ If you find anything that could be improved then please create a pull request! W
38
38
-[Exercise string logger](#for-loop-1)
39
39
-[Exercise send emails](#send-emails)
40
40
41
-
The students really struggle with the **return** value. What it means, how it is captured. What happens when nothing is returned etc. Try really hammering in this concept with lots of simple examples and exercises! Fx if a function is called get something. That means that something is returned from that function.
41
+
The students really struggle with the **return** value. What it means, how it is captured. What happens when nothing is returned etc. Try really hammering in this concept with lots of simple examples and exercises! e.g. if a function is called get something. That means that something is returned from that function.
42
42
43
43
Zoey Zou made a nice Notion lesson plan here: <https://www.notion.so/JS1-Week2-8f2d4b7e7ba0425ea4a9e97816e9ceb7>
Copy file name to clipboardExpand all lines: legacy/javascript/javascript1/week3/homework.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
Array's has lots of helper functions, that is used all the time when developing js applications. It is super helpful to be able to **manipulate an array** like **removing elements** or **adding elements** at specific indexes. Another helpful function of arrays is to know **where a specific item is** in the array.
6
6
7
-
Objects can be used for **representing data** and it can **help structure your code**. An object can fx represent a user that has a firstname, surname, profile picture and a list of friends. It is constantly used in javascript and **essential to learning the language**.
7
+
Objects can be used for **representing data** and it can **help structure your code**. An object can e.g. represent a user that has a firstname, surname, profile picture and a list of friends. It is constantly used in javascript and **essential to learning the language**.
8
8
9
9
If you struggle to do this weeks homework there are a couple of things to do:
Copy file name to clipboardExpand all lines: legacy/javascript/javascript1/week3/lesson-plan.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
8
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!
9
9
10
-
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)
10
+
To find examples of what teachers have taught before go to the class branches in the classwork folder, e.g.[class 07](https://github.com/HackYourFuture-CPH/JavaScript/tree/class07/JavaScript1/Week1/classwork)
11
11
12
12
If you find anything that could be improved then please create a pull request! We welcome changes, so please get involved if you have any ideas!!!
Copy file name to clipboardExpand all lines: legacy/javascript/javascript1/week4/homework.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,9 +36,9 @@ These are the commands you should be able to give the voice assistant:
36
36
-`Add fishing to my todo` - Should respond with "fishing added to your todo". Should add fishing to a list of todos
37
37
-`Add singing in the shower to my todo` - Should add singing in the shower to a list of todos
38
38
-`Remove fishing from my todo` - Should respond with "Removed fishing from your todo"
39
-
-`What is on my todo?` - should respond with the todos. Fx you have 2 todos - fishing and singing in the shower
39
+
-`What is on my todo?` - should respond with the todos. e.g. you have 2 todos - fishing and singing in the shower
40
40
-`What day is it today?` - Should respond with the date in a human readable format. E.g. if today is 30/8/2019 then it should respond with 30. of August 2019
41
-
- Should be able to do simple math. fx`what is 3 + 3` should respond with 6. Or `what is 4 * 12` should respond with 48
41
+
- Should be able to do simple math. e.g.`what is 3 + 3` should respond with 6. Or `what is 4 * 12` should respond with 48
42
42
-`Set a timer for 4 minutes` - Should respond with "Timer set for 4 minutes". When 4 minutes is up: "Timer done". How do we set a timer in js? Google is your friend here!
Copy file name to clipboardExpand all lines: legacy/javascript/javascript1/week4/lesson-plan.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
8
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!
9
9
10
-
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)
10
+
To find examples of what teachers have taught before go to the class branches in the classwork folder, e.g.[class 07](https://github.com/HackYourFuture-CPH/JavaScript/tree/class07/JavaScript1/Week1/classwork)
11
11
12
12
If you find anything that could be improved then please create a pull request! We welcome changes, so please get involved if you have any ideas!!!
13
13
@@ -74,7 +74,7 @@ When that works. Make the two number for multiples into parameters. So it can be
74
74
75
75
A sentiment analyzer is some functionality that figures out how positive/negative a sentence is.
76
76
77
-
Fx the sentence `I am mega super awesome happy" Should have a high score
77
+
For example, the sentence `I am mega super awesome happy" Should have a high score
78
78
The sentence "I hate doing boring stuff" should have a low score.
79
79
80
80
Create a function that takes a string as a parameter. calling the function will return an object with `score`, `positiveWords` and `negativeWords`. You decide how the score should be implemented and what words are negative and positive.
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.
99
+
This is a very real world example of a problem i got at my previous work. I
100
+
was tasked to implement one of the smart credit card input fields, where the
101
+
credit card numbers are separated with a space. e.g. inputting 123456789 would show 1234 5678 9.
0 commit comments