diff --git a/legacy/javascript/homework-projects/guides/making-your-API-guide.md b/legacy/javascript/homework-projects/guides/making-your-API-guide.md index c34b716f..fa13a714 100644 --- a/legacy/javascript/homework-projects/guides/making-your-API-guide.md +++ b/legacy/javascript/homework-projects/guides/making-your-API-guide.md @@ -30,7 +30,7 @@ If you already have such a repository, just go on to the next step. ![See the JSON file](../assets/API-guide-2.png) -❗Be mindful about your data format. Note wether you should use an object or an array of objects and form your file accordingly. +❗Be mindful about your data format. Note whether you should use an object or an array of objects and form your file accordingly. ### Using the API diff --git a/legacy/javascript/javascript1/week1/homework.md b/legacy/javascript/javascript1/week1/homework.md index e2417592..9d6ecca7 100644 --- a/legacy/javascript/javascript1/week1/homework.md +++ b/legacy/javascript/javascript1/week1/homework.md @@ -110,7 +110,7 @@ Create a variable called `startupName` that will contain the created startup nam 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. An example could be: "The startup: "Easy Corporation" contains 16 characters" -Hint: you can use this code to generate a random number from 0-9, if you dont want to specify the indexes yourself. +Hint: you can use this code to generate a random number from 0-9, if you don't want to specify the indexes yourself. ```js const randomNumber = Math.floor(Math.random() * 10); @@ -124,7 +124,7 @@ To be continued... ## Step 4: Hand in Homework -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! +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! Watch [this video](https://www.youtube.com/watch?v=JcT4wmK1VcA) to go through the same process as is documented here diff --git a/legacy/javascript/javascript1/week1/lesson-plan.md b/legacy/javascript/javascript1/week1/lesson-plan.md index db7d6594..0e573257 100644 --- a/legacy/javascript/javascript1/week1/lesson-plan.md +++ b/legacy/javascript/javascript1/week1/lesson-plan.md @@ -1,11 +1,11 @@ # Lesson plan - Focus on having lots of in class exercises. -- DONT teach everything, let the students investigate topics on their own aswell! +- DON'T teach everything, let the students investigate topics on their own as well! - Focus on how to read documentation, google answers and google errors!! - Teach towards the students being able to solve the homework -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! +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! 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) diff --git a/legacy/javascript/javascript1/week2/README.md b/legacy/javascript/javascript1/week2/README.md index 95b6ac99..4890c1f1 100644 --- a/legacy/javascript/javascript1/week2/README.md +++ b/legacy/javascript/javascript1/week2/README.md @@ -76,7 +76,7 @@ const randomNumber = Math.random(); console.log(randomNumber); // logs out some number between 0 and 1 ``` -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! +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! Some functions is called with arguments fx: @@ -101,7 +101,7 @@ function checkItem() { } // use the function by calling it using () -// If we dont call the function that code will NEVER EVER IN A MILLION YEARS run! +// If we don't call the function that code will NEVER EVER IN A MILLION YEARS run! checkItem(); console.log(todoItem); ``` @@ -151,7 +151,7 @@ function sum(a, b) { const returnedSum = sum(5, 10); // the variable returnedSum captures the return value from calling the function! console.log(returnedSum); // logs 15 -// If we dont return, we cannot capture the returned value! +// If we don't return, we cannot capture the returned value! function sumNoReturn(a, b) { a + b; // no return! } @@ -159,7 +159,7 @@ const returnedSum = sum(5, 10); console.log(returnedSum); // logs undefined ``` -If we dont return anything from the function, it will automatically return `undefined`. This is the functions way of saying that nothing was returned. +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. ### Calling a function on something diff --git a/legacy/javascript/javascript1/week2/homework.md b/legacy/javascript/javascript1/week2/homework.md index 76dce13e..049377c9 100644 --- a/legacy/javascript/javascript1/week2/homework.md +++ b/legacy/javascript/javascript1/week2/homework.md @@ -26,7 +26,7 @@ This will create and checkout the branch so you are ready make commits to it ## Why should I even do this homework? -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. +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. If you struggle to do this weeks homework there are a couple of things to do: diff --git a/legacy/javascript/javascript1/week2/lesson-plan.md b/legacy/javascript/javascript1/week2/lesson-plan.md index bf18fe3f..a8088479 100644 --- a/legacy/javascript/javascript1/week2/lesson-plan.md +++ b/legacy/javascript/javascript1/week2/lesson-plan.md @@ -1,11 +1,11 @@ # Lesson plan - Focus on having lots of in class exercises. -- DONT teach everything, let the students investigate topics on their own aswell! +- DON'T teach everything, let the students investigate topics on their own as well! - Focus on how to read documentation, google answers and google errors!! - Teach towards the students being able to solve the homework -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! +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! 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) @@ -118,7 +118,7 @@ function checkItem() { } // use the function by calling it using () -// If we dont call the function that code will NEVER EVER IN A MILLION YEARS run! +// If we don't call the function that code will NEVER EVER IN A MILLION YEARS run! checkItem(); console.log(todoItem); @@ -148,7 +148,7 @@ function sum(a, b) { const returnedSum = sum(5, 10); // the variable returnedSum captures the return value from calling the function! console.log(returnedSum); // logs 15 -// If we dont return, we cannot capture the returned value! +// If we don't return, we cannot capture the returned value! function sumNoReturn(a, b) { a + b; // no return! } @@ -256,9 +256,9 @@ const balance = 1000; ### Function -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? +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? -Create a function called `celciusToFahreneit` it should have a parameter called `celcius`. It should return the temperature in fahrenheit. +Create a function called `celsiusToFahrenheit` it should have a parameter called `celsius`. It should return the temperature in fahrenheit. Try call the function and check with google if the function returns the right value. @@ -307,16 +307,16 @@ logString("hello", 3); ### Send emails -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: `benjamin@gmail.com|peter@gmail.com|hans@gmail.com|ahmad@gmail.com|sana@gmail.com|virgeen@gmail.com|mohammed@gmail.com` +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: `benjamin@gmail.com|peter@gmail.com|hans@gmail.com|ahmad@gmail.com|sana@gmail.com|virgeen@gmail.com|mohammed@gmail.com` -Use the `sendEmailTo` function to send an email to all the recepients that we got from Peter. +Use the `sendEmailTo` function to send an email to all the recipients that we got from Peter. _Hint_ use the `.split` method and look up `iterating an array js for loop` on google. ```js -// This function emulates sending emails to receipients -function sendEmailTo(recepient) { +// This function emulates sending emails to recipients +function sendEmailTo(recipient) { // But really it only logs out a string - console.log("email sent to " + recepient); + console.log("email sent to " + recipient); } ``` diff --git a/legacy/javascript/javascript1/week3/homework.md b/legacy/javascript/javascript1/week3/homework.md index 676f5f1b..f4834537 100644 --- a/legacy/javascript/javascript1/week3/homework.md +++ b/legacy/javascript/javascript1/week3/homework.md @@ -185,7 +185,7 @@ logOutNotesFormatted(); // should log out the text below Suddenly you get this great idea for making the note app even better! -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 :) +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 :) 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 :) @@ -244,7 +244,7 @@ Come up with one feature you think would be helpful for this program. Optional -- 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: +- 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: - Improve the `showStatus` function by only showing the number of actitivies for that specific day. - Create a function for calculating the activity a user has spent the most time on. diff --git a/legacy/javascript/javascript1/week3/lesson-plan.md b/legacy/javascript/javascript1/week3/lesson-plan.md index 48574893..4fb9552e 100644 --- a/legacy/javascript/javascript1/week3/lesson-plan.md +++ b/legacy/javascript/javascript1/week3/lesson-plan.md @@ -1,11 +1,11 @@ # Lesson plan - Focus on having lots of in class exercises. -- DONT teach everything, let the students investigate topics on their own aswell! +- DON'T teach everything, let the students investigate topics on their own as well! - Focus on how to read documentation, google answers and google errors!! - Teach towards the students being able to solve the homework -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! +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! 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) diff --git a/legacy/javascript/javascript1/week4/lesson-plan.md b/legacy/javascript/javascript1/week4/lesson-plan.md index c725edb5..967e49d9 100644 --- a/legacy/javascript/javascript1/week4/lesson-plan.md +++ b/legacy/javascript/javascript1/week4/lesson-plan.md @@ -1,11 +1,11 @@ # Lesson plan - Focus on having lots of in class exercises. -- DONT teach everything, let the students investigate topics on their own aswell! +- DON'T teach everything, let the students investigate topics on their own as well! - Focus on how to read documentation, google answers and google errors!! - Teach towards the students being able to solve the homework -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! +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! 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) @@ -45,7 +45,7 @@ Focus on ### Fibonacci Sequence -Given a specific number in the fibonacci sequence return the fibonachi number. +Given a specific position in the Fibonacci sequence, return the Fibonacci number. ```js // 0, 1, 1, 2, 3, 5, 8, 13, 21, 34 @@ -96,7 +96,7 @@ console.log(sentimentScoreObject); ### Credit card number formatter -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. +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. ![Credit card formatter](assets/credit-card-formatter.gif) diff --git a/legacy/javascript/javascript2/week1/README.md b/legacy/javascript/javascript2/week1/README.md index 6783e41e..b2753319 100644 --- a/legacy/javascript/javascript2/week1/README.md +++ b/legacy/javascript/javascript2/week1/README.md @@ -132,7 +132,7 @@ Or when someone clicks "Close cookies" (event) we want to remove the cookie div. Lets first try to create some js that waits for 2 seconds and the console.logs out "2 seconds has elapsed!" -In JavaScript we use the word eventlistener to listen +In JavaScript we use an _event listener_ to listen: ```javascript setTimeout(function () { @@ -149,9 +149,9 @@ setTimeout(fourSecondLog, 4000); Now lets try and log out "button clicked!" when a button is clicked. -To check if a button gets clicked we use a what is called an eventlistener. +To check if a button gets clicked we use a what is called an _event listener_. -Imagine a person listening to the click of a button and everytime he hears a click he yells out "CLICKED". +Imagine a person listening to the click of a button and every time he hears a click he yells out "CLICKED". ```javascript const buttonElement = document.querySelector("button"); diff --git a/legacy/javascript/javascript2/week1/lesson-plan.md b/legacy/javascript/javascript2/week1/lesson-plan.md index 33019c0c..7adc8830 100644 --- a/legacy/javascript/javascript2/week1/lesson-plan.md +++ b/legacy/javascript/javascript2/week1/lesson-plan.md @@ -1,11 +1,11 @@ # Lesson plan - Focus on having lots of in class exercises. -- DONT teach everything, let the students investigate topics on their own aswell! +- DON'T teach everything, let the students investigate topics on their own as well! - Focus on how to read documentation, google answers and google errors!! - Teach towards the students being able to solve the homework -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! +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! 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) diff --git a/legacy/javascript/javascript2/week2/lesson-plan.md b/legacy/javascript/javascript2/week2/lesson-plan.md index b48505b2..f9455976 100644 --- a/legacy/javascript/javascript2/week2/lesson-plan.md +++ b/legacy/javascript/javascript2/week2/lesson-plan.md @@ -1,7 +1,7 @@ # Lesson plan - Focus on having lots of in class exercises. -- DONT teach everything, let the students investigate topics on their own aswell! +- DON'T teach everything, let the students investigate topics on their own as well! - Focus on how to read documentation, google answers and google errors!! - Teach towards the students being able to solve the homework diff --git a/legacy/javascript/javascript2/week3/lesson-plan.md b/legacy/javascript/javascript2/week3/lesson-plan.md index ca3858df..35bde4ed 100644 --- a/legacy/javascript/javascript2/week3/lesson-plan.md +++ b/legacy/javascript/javascript2/week3/lesson-plan.md @@ -7,21 +7,21 @@ These are some examples of previously created materials by mentors that you can - [Notion Page Handout](https://dandy-birth-1b2.notion.site/HYF-Aarhus-JS-2-Week-3-6bce73b3a0bf47a3ad32ed12ee4d0519?pvs=4) (by [Thomas](https://github.com/te-online)) - Focus on having lots of in class exercises. -- DONT teach everything, let the students investigate topics on their own aswell! +- DON'T teach everything, let the students investigate topics on their own as well! - Focus on how to read documentation, google answers and google errors!! - Teach towards the students being able to solve the homework -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! +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! 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) 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!!! -- Function as a variable - function can be called inside another function, like we saw with the homemade `forEach` +- Function as a variable - function can be called inside another function, like we saw with the home-made `forEach` - [Code inspiration](#calling-a-function-within-a-function) -- Callback function and asyncronicity - shows a practical example of function that gets called by another function (fx `setTimeout` or `addEventListener`) +- Callback function and asynchronicity - shows a practical example of function that gets called by another function (fx `setTimeout` or `addEventListener`) - [Code inspiration](#callback-functions) -- Anonomyous function vs named function +- Anonymous function vs named function - [Code inspiration](#anonymous-vs-named-function) - [Exercise 1](#click-counter), [exercises 2](#delay-clicker), [exercise 3](#page-onload), [exercises 4](#mouse-position) - Scope - Only if the students needs this! Ask to their abilities! @@ -31,8 +31,8 @@ The students should after the class **feel comfortable with callback functions** Also hammer in the point of the difference between: ```js -document.querySelector("button").addEventListner("click", logOuttext); -document.querySelector("button").addEventListner("click", logOuttext()); +document.querySelector("button").addEventListener("click", logOuttext); +document.querySelector("button").addEventListener("click", logOuttext()); ``` Good example of practical example of callbacks: @@ -51,7 +51,7 @@ This is super good at explaining function logic ### Calling a function within a function ```js -// Here we create a funtion that as a parameter takes a function!! Super weird right!? +// Here we create a function that as a parameter takes a function!! Super weird right!? // Functions works just like any other type in js. function functionRunner(functionToRun) { console.log(typeof functionToRun); @@ -63,7 +63,7 @@ functionRunner(function () { console.log("hello"); }); -// We dont see anything, why?? +// We don't see anything, why?? functionRunner(Math.random); // Lets rewrite functionRunner to log out the return of a function @@ -89,7 +89,7 @@ When these events happen, we usually want to add some functionality. Fx when a user clicks the like button (event), we want to increment the like counter and color the like button blue. Or when someone clicks "Close cookies" (event) we want to remove the cookie div. Lets first try to create some js that waits for 2 seconds and the console.logs out "2 seconds has elapsed!" -In javascript we use the word eventlistener to listen +In javascript we use an event listener to listen */ // Tried to find actual webkit implementation, but failed. To show that the setTimeout implementation is just calling the provided function after a given time @@ -105,8 +105,8 @@ const fourSecondLog = function () { setTimeout(fourSecondLog, 4000); // Now lets try and log out "button clicked!" when a button is clicked. -// To check if a button gets clicked we use a what is called an eventlistener. -// Imagine a person listening to the click of a button and everytime he hears a click he yells out "CLICKED". +// To check if a button gets clicked we use a what is called an event listener. +// Imagine a person listening to the click of a button and every time he hears a click he yells out "CLICKED". const buttonElement = document.querySelector("button"); buttonElement.addEventListener("click", function () { console.log("Button clicked!"); diff --git a/legacy/javascript/javascript2/week3/optional-homework.md b/legacy/javascript/javascript2/week3/optional-homework.md index 8d744a52..9367edfd 100644 --- a/legacy/javascript/javascript2/week3/optional-homework.md +++ b/legacy/javascript/javascript2/week3/optional-homework.md @@ -11,7 +11,7 @@ We want you to realise that **functions are just variables** in javascript. It i ## 1. Warmup -### 1.1 codewars! +### 1.1 CodeWars! - [7 kyu Product Array (Array Series #5)](https://www.codewars.com/kata/5a905c2157c562994900009d/javascript) @@ -54,7 +54,7 @@ The warmup is a **little abstract**, it will get more concrete later on! ## 2. Function as a variable -Create funtions that are used in these different ways: +Create functions that are used in these different ways: - Create an array with 3 items. All items should be functions. Iterate through the array and call all the functions. - Create a function as a const and try creating a function normally. Call both functions. Read up on this if you are interested: @@ -80,7 +80,7 @@ You can implement it exactly like you want to, but here is my recommended order: 1. **Create an input and a button in html**. When the button is clicked, get the value of the input. This value will be the amount of time the game should run. 2. **Set a timeout for the time specified by the user.** After that time has run out just log out a simple string. -3. **Create an event listener** so you can call a function **when any key is pressed**. Now grap the actual key that was pressed. Fx was it a `j` or an `i`. We are interested in `s` and `l`. Here google is your friend! +3. **Create an event listener** so you can call a function **when any key is pressed**. Now grab the actual key that was pressed. For example, was it a `j` or an `i`. We are interested in `s` and `l`. Here google is your friend! 4. **Keep a counter** for how many times `l` and `s` was pressed. 5. **Now put it all together!** After the timeout is done figure out which of the counters is largest. Give some kind of feedback to the users indicating who won. @@ -88,7 +88,7 @@ You can implement it exactly like you want to, but here is my recommended order: 1. **Start a new game** functionality. Create some functionality so that the users can restart a game. 2. Try and give the site some **styling so it looks nice** :) -3. **Custom feature**. Add something unique to the game! If you dont know how to implement it, just describe what it should do! +3. **Custom feature**. Add something unique to the game! If you don't know how to implement it, just describe what it should do! 4. **Countdown to end of game** - _optional_. Have a countdown that simply counts down until the game is done. Here are some general things to consider: diff --git a/legacy/javascript/javascript3/week1/lesson-plan.md b/legacy/javascript/javascript3/week1/lesson-plan.md index bb0a440d..7b39d836 100644 --- a/legacy/javascript/javascript3/week1/lesson-plan.md +++ b/legacy/javascript/javascript3/week1/lesson-plan.md @@ -1,7 +1,7 @@ # Lesson plan - Focus on having lots of in class exercises. -- DONT teach everything, let the students investigate topics on their own aswell! +- DON'T teach everything, let the students investigate topics on their own as well! - Focus on how to read documentation, google answers and google errors!! - Teach towards the students being able to solve the homework @@ -11,7 +11,7 @@ These are some examples of previously created materials by mentors that you can - [Notion Page Handout](https://dandy-birth-1b2.notion.site/HYF-Aarhus-JS-3-Week-1-c6fd6d7243454ac0b519c17829bf8761?pvs=4) (by [Thomas](https://github.com/te-online)) -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! +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! 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) @@ -30,7 +30,7 @@ If you find anything that could be improved then please create a pull request! W - [Exercise](#meal-ordering-website) - Apis - The focus should be on consuming api's with `get` method. - - Give an example of an api (preferably one with an accesstoken, showing that part aswell) + - Give an example of an API (preferably one with an access token, showing that part as well) - Explain conceptually what an api is (interface that hides abstraction). Explain how paths and query parameters work. Do not show how an api is implemented. We show that in the node class. Good analogy [here](https://www.reddit.com/r/webdev/comments/en04ct/i_created_a_word_suggestions_api_to_use_on_a/fdtmj60/) - [Code inspiration](#apis) - Fetch (No promise explanation! Focus on usage) @@ -107,7 +107,7 @@ What is an interface? Programmers can use an api to access complex functionality in a simple way. Electricity socket. You just plug your appliance into the wall and it works. -We dont have to worry about the wiring or anything. The complex functionality has been abstracted away. +We don't have to worry about the wiring or anything. The complex functionality has been abstracted away. Web API's are like that, but just for getting data from a server. There are some funny apis to play with: diff --git a/legacy/javascript/javascript3/week2/README.md b/legacy/javascript/javascript3/week2/README.md index 7662e0a6..51fafadc 100644 --- a/legacy/javascript/javascript3/week2/README.md +++ b/legacy/javascript/javascript3/week2/README.md @@ -19,7 +19,7 @@ const fastCarBrands = cars .map((car) => car.brand); ``` -We can chain promise function aswell, and it works exactly like with chaining array methods or chaining anything in js. We use the return of calling the previous function: +We can chain promise function as well, and it works exactly like with chaining array methods or chaining anything in js. We use the return of calling the previous function: ```js doesBenjaminEndWithN = "BENJAMIN" diff --git a/legacy/javascript/javascript3/week2/lesson-plan.md b/legacy/javascript/javascript3/week2/lesson-plan.md index 397fae8e..584484aa 100644 --- a/legacy/javascript/javascript3/week2/lesson-plan.md +++ b/legacy/javascript/javascript3/week2/lesson-plan.md @@ -1,7 +1,7 @@ # Lesson plan - Focus on having lots of in class exercises. -- DONT teach everything, let the students investigate topics on their own aswell! +- DON'T teach everything, let the students investigate topics on their own as well! - Focus on how to read documentation, google answers and google errors!! - Teach towards the students being able to solve the homework @@ -11,7 +11,7 @@ These are some examples of previously created materials by mentors that you can - [Notion Page Handout](https://dandy-birth-1b2.notion.site/HYF-Aarhus-JS-3-Week-2-0287dd1293df4a0a92171e62ce12f5c8?pvs=4) (by [Thomas](https://github.com/te-online)) -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! +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! 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) @@ -65,7 +65,7 @@ At this point good coding practices is starting to get very important! Check our ``` ```js -// DONT EXPLAIN WHAT ASYNC OR AWAIT DOES YET! Explain on a higher level: +// DON'T EXPLAIN WHAT ASYNC OR AWAIT DOES YET! Explain on a higher level: // You have to write async before a function for await to work. No details for now // await waits until we have fetched the data from the api. Or said in another way await waits until fetch has resolved with the data from the api @@ -223,7 +223,7 @@ function makeTea() { if (isThereMoreTea) { resolve(tea); } else { - reject("We dont have more TEA!!"); + reject("We don't have more TEA!!"); } }, 3000); }); diff --git a/legacy/javascript/javascript3/week3/lesson-plan.md b/legacy/javascript/javascript3/week3/lesson-plan.md index b4b71ac0..a70372ba 100644 --- a/legacy/javascript/javascript3/week3/lesson-plan.md +++ b/legacy/javascript/javascript3/week3/lesson-plan.md @@ -1,7 +1,7 @@ # Lesson plan - Focus on having lots of in class exercises. -- DONT teach everything, let the students investigate topics on their own aswell! +- DON'T teach everything, let the students investigate topics on their own as well! - Focus on how to read documentation, google answers and google errors!! - Teach towards the students being able to solve the homework @@ -11,7 +11,7 @@ These are some examples of previously created materials by mentors that you can - [Notion Page Handout](https://dandy-birth-1b2.notion.site/HYF-Aarhus-JS-3-Week-3-09fd374036c440ebb6a0a9cc355b248c?pvs=4) (by [Thomas](https://github.com/te-online)) -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! +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! 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) diff --git a/legacy/nodejs/week1/lesson-plan.md b/legacy/nodejs/week1/lesson-plan.md index f5b3d243..5c29e1d5 100644 --- a/legacy/nodejs/week1/lesson-plan.md +++ b/legacy/nodejs/week1/lesson-plan.md @@ -1,11 +1,11 @@ # Lesson plan - Focus on having lots of in class exercises. -- DONT teach everything, let the students investigate topics on their own aswell! +- DON'T teach everything, let the students investigate topics on their own as well! - Focus on how to read documentation, google answers and google errors!! - Teach towards the students being able to solve the homework -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! +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! 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) diff --git a/legacy/nodejs/week2/lesson-plan.md b/legacy/nodejs/week2/lesson-plan.md index b23919b6..2410275b 100644 --- a/legacy/nodejs/week2/lesson-plan.md +++ b/legacy/nodejs/week2/lesson-plan.md @@ -1,11 +1,11 @@ # Lesson plan - Focus on having lots of in class exercises. -- DON'T teach everything, let the students investigate topics on their own aswell! +- DON'T teach everything, let the students investigate topics on their own as well! - Focus on how to read documentation, google answers and google errors!! - Teach towards the students being able to solve the homework. -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! +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! 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) diff --git a/legacy/nodejs/week3/lesson-plan.md b/legacy/nodejs/week3/lesson-plan.md index f50d2f66..287cf3f5 100644 --- a/legacy/nodejs/week3/lesson-plan.md +++ b/legacy/nodejs/week3/lesson-plan.md @@ -1,11 +1,11 @@ # Lesson plan - Focus on having lots of in class exercises. -- DONT teach everything, let the students investigate topics on their own aswell! +- DON'T teach everything, let the students investigate topics on their own as well! - Focus on how to read documentation, google answers and google errors!! - Teach towards the students being able to solve the homework. -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! +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! 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)