Skip to content

Sprint 2: added new questions #295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
4 changes: 4 additions & 0 deletions questions-and-reviews/questions/0.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ const result2 = logSum(10, 32);
```

a) what will `result1` evaluate to? Explain your answer
// the answer should be 42, It is because function calculateSum 10+32



b) What will `result2` evaluate to? Explain your answer
// the answer should be 10+32, It is because function logSum is 10+32

c) Try to summarise the main difference between `logSum` and `calculateSum`

Expand Down
1 change: 1 addition & 0 deletions questions-and-reviews/questions/1.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ Ctr + Shift + V (Windows/Linux) or CMD + Shift + V (Mac)
In this task, you'll need to look at some code in `1.js` and, firstly, predict what it will do, **without executing it**.

{YOUR PREDICTION HERE}
I Think something is missing

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please can you give more details what do you think is missing?


Afterwards, you can execute the code in `1.js` to check your answer 📝
2 changes: 1 addition & 1 deletion questions-and-reviews/questions/2.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ let count = 0;
while(count < 10) {
count++;
console.log('*'.repeat(count))
}
}
1 change: 1 addition & 0 deletions questions-and-reviews/questions/2.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ If some parts of the code are unfamiliar, then look them up on MDN.
Write your prediction below:

{YOUR PREDICTION HERE}
(0+0) <10 >

Once you've written your prediction, then commit your work. Now actually run `2.js` using node and write your answer below:

Expand Down