Skip to content
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
2 changes: 1 addition & 1 deletion .questions/questions-0/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Q: What is a javascript REPL? Can you name two ways to open one?

A: {YOUR ANSWER HERE}
A: {It is in terminal when you run node. You can open it by VS code, powershell,windows terminal,...}


Remember to commit and push when you're finished!
12,464 changes: 12,464 additions & 0 deletions debugging-3/package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions debugging-3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"react": "^18.2.0",
"react-debugging": "file:",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
Expand Down
3 changes: 2 additions & 1 deletion questions-and-reviews/questions/0.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ a) what will `result1` evaluate to? Explain your answer
b) What will `result2` evaluate to? Explain your answer

c) Try to summarise the main difference between `logSum` and `calculateSum`
//I think both of them have the same results(42). In the first function we are using of return but in the second we are using of console.log


{YOUR ANSWERS HERE}
/
2 changes: 1 addition & 1 deletion questions-and-reviews/questions/1.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
// Remember to write your prediction first, before you run this file

const currentYear = 2023;
currentYear();
console.log(currentYear);
3 changes: 2 additions & 1 deletion questions-and-reviews/questions/2.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ let count = 0;
while(count < 10) {
count++;
console.log('*'.repeat(count))
}
}
// It is going to print '*' to 10 lines and adding one '*' in the next line
3 changes: 2 additions & 1 deletion questions-and-reviews/questions/3.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Describe the difference between a commit and a push


{YOUR ANSWER HERE}
{YOUR ANSWER HERE}
commit is accepting changes in a part of your code and when you want to share it with others you must push them on github.
3 changes: 2 additions & 1 deletion questions-and-reviews/questions/4.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ Q: What is the difference between a fork and cloned repository?
A: {YOUR ANSWER HERE}


Remember to commit and push when you're finished!
Remember to commit and push when you're finished!
When you fork a project, it is copied to your GitHub account, but when you clone it, it is copied to your local computer.
4 changes: 3 additions & 1 deletion questions-and-reviews/questions/5.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ expect(sum(10,32)).toBe(42);
```

a) Describe, in your own words, what the above assertion checks.
The assertion expect(sum(10,32)).toBe(42); the function sum returns 42 when given the inputs 10 and 32. If the function returns 42, the test passes; otherwise, it fails.

Now try the following:

b) Write an **assertion** that checks that a function `isMultipleOfTen` returns `true` when called with the input `80`
You can check out the [Jest documentation here](https://jestjs.io/docs/expect#matchers) to help you with this task.
You can check out the [Jest documentation here](https://jestjs.io/docs/expect#matchers) to help you with this task.
expect(isMultipleOfTen(80)).toBe(true);
5 changes: 5 additions & 0 deletions react-pokedex/pokedex/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-pokedex/pokedex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"pokedex": "file:",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Loading