Skip to content

Question and reviews workshop #299

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 5 commits 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: 3 additions & 1 deletion questions-and-reviews/questions/0.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ b) What will `result2` evaluate to? Explain your answer

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


{YOUR ANSWERS HERE}
a 42
b 42
logSum will print but calculateSum won't print
1 change: 1 addition & 0 deletions questions-and-reviews/questions/1.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ In this task, you'll need to look at some code in `1.js` and, firstly, predict w
{YOUR PREDICTION HERE}

Afterwards, you can execute the code in `1.js` to check your answer 📝
currentyear is not a function
5 changes: 3 additions & 2 deletions questions-and-reviews/questions/2.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
## Predict -> Run -> Observe -> Explain

It will print \* 10 times and ++ will increase value everytime it will print.

In this task, you'll need to look at some code and predict what it does, **before running the program**
This task will help you to develop your code reading skills.


Look at the code in `2.js`: read it carefully and discuss it with your pair.
What do you think the output will look like?
If some parts of the code are unfamiliar, then look them up on MDN.
Expand All @@ -13,4 +14,4 @@ Write your prediction below:

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

{ACTUAL OBSERVED BEHAVIOUR}
{ACTUAL OBSERVED BEHAVIOUR}
4 changes: 2 additions & 2 deletions questions-and-reviews/questions/3.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Describe the difference between a commit and a push


{YOUR ANSWER HERE}
{YOUR ANSWER HERE}
The different between commit and push is, in commit we can change or add code and need to leave msg to commit each time we commit in our local machine.In push we can see the changes in remote and able to see how many time we have commit also need remote repository.