Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions exercises/1-debugging-quiz/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ Let's see what you remember from last week!
You should answer in a _thread_ on Slack

1. What are the four questions we ask ourselves in the Debugging Framework?

2. What are three of the tools we could use to debug our programs?

3. What is a `syntax` error?
An error in the syntax of a coding or programming language \_ ESLint does nto detect these

4. What is a `reference` error?
An error when a variable does not eist (or hasn't yet been initialized) in the current scope is referenced.

5. What is a `type` error?
An error when an operation could not be performed,
13 changes: 13 additions & 0 deletions exercises/3-what-are-APIs/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,25 @@ Which of the statements below about APIs are false?
- C) APIs can control access to data or features of an application.
- D) You can change data via an API.

~true

### QUESTION 2

Give an example of a company that uses an API to allow access to their data.

~false

### QUESTION 3

What is the `myapi/` part of a url called in this url?

`http://www.google.com/**myapi**/`

~ true - get post put patch (updating a comment delete

API
true
false - can use any programme
true -
true - get post put patch (updating a comment delete
city Mapper Api
14 changes: 10 additions & 4 deletions exercises/4-how-to-use-fetch/country-exercise/script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
// This function should retrieve the JSON from the `countryURL` and then call onCountryDataReceived() with the JSON
function getData(countryURL) {}
function getData(countryURL) {
fetch(countryURL)
.then((Response) => {
return Response.json();
})
.then((jason) => {
onCountryDataReceived(json);
});
}

function onCountryDataReceived(country) {
addCountryName(country);
Expand All @@ -21,9 +29,7 @@ function getContentDiv() {
}

function onLoad() {
getData(
"https://restcountries.com/v3.1/name/Great%20Britain"
);
getData("https://restcountries.com/v3.1/name/Great%20Britain");

/** Remove this line when you have completed the task

Expand Down