diff --git a/questions-and-reviews/questions/0.md b/questions-and-reviews/questions/0.md index ab3127d7..1b1da93b 100644 --- a/questions-and-reviews/questions/0.md +++ b/questions-and-reviews/questions/0.md @@ -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` diff --git a/questions-and-reviews/questions/1.md b/questions-and-reviews/questions/1.md index e6a043f1..8b8f10b3 100644 --- a/questions-and-reviews/questions/1.md +++ b/questions-and-reviews/questions/1.md @@ -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 Afterwards, you can execute the code in `1.js` to check your answer 📝 diff --git a/questions-and-reviews/questions/2.js b/questions-and-reviews/questions/2.js index bd319e1f..6c27dbc5 100644 --- a/questions-and-reviews/questions/2.js +++ b/questions-and-reviews/questions/2.js @@ -6,4 +6,4 @@ let count = 0; while(count < 10) { count++; console.log('*'.repeat(count)) -} \ No newline at end of file +} diff --git a/questions-and-reviews/questions/2.md b/questions-and-reviews/questions/2.md index b9c7a189..4be9e194 100644 --- a/questions-and-reviews/questions/2.md +++ b/questions-and-reviews/questions/2.md @@ -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: