diff --git a/questions-and-reviews/questions/0.md b/questions-and-reviews/questions/0.md index ab3127d7..f4ff4fc1 100644 --- a/questions-and-reviews/questions/0.md +++ b/questions-and-reviews/questions/0.md @@ -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 diff --git a/questions-and-reviews/questions/1.md b/questions-and-reviews/questions/1.md index e6a043f1..68d8d1f0 100644 --- a/questions-and-reviews/questions/1.md +++ b/questions-and-reviews/questions/1.md @@ -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 diff --git a/questions-and-reviews/questions/2.md b/questions-and-reviews/questions/2.md index b9c7a189..3ec92c90 100644 --- a/questions-and-reviews/questions/2.md +++ b/questions-and-reviews/questions/2.md @@ -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. @@ -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} \ No newline at end of file +{ACTUAL OBSERVED BEHAVIOUR} diff --git a/questions-and-reviews/questions/3.md b/questions-and-reviews/questions/3.md index bc0764bc..8630f1e2 100644 --- a/questions-and-reviews/questions/3.md +++ b/questions-and-reviews/questions/3.md @@ -1,4 +1,4 @@ Describe the difference between a commit and a push - -{YOUR ANSWER HERE} \ No newline at end of file +{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.