From f62e45f6832d080cbf9f72a9edc5d7cd633ee274 Mon Sep 17 00:00:00 2001 From: sab325 Date: Sat, 8 Feb 2025 12:20:54 +0000 Subject: [PATCH 1/4] ans1 --- questions-and-reviews/questions/0.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 From 2d03f8e1415538174686bbba4939763675cb457d Mon Sep 17 00:00:00 2001 From: sabafarjamfard Date: Sat, 8 Feb 2025 12:50:07 +0000 Subject: [PATCH 2/4] fix questions 1.md --- questions-and-reviews/questions/1.md | 1 + 1 file changed, 1 insertion(+) 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 From cdb2b054d4149194c8d648af77bddf68327c089e Mon Sep 17 00:00:00 2001 From: sab325 Date: Sat, 8 Feb 2025 13:53:04 +0000 Subject: [PATCH 3/4] 2.md ans --- questions-and-reviews/questions/2.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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} From e0efacce4284e627857bc8e9950c10fe680cf5dd Mon Sep 17 00:00:00 2001 From: sab325 Date: Sat, 8 Feb 2025 14:11:34 +0000 Subject: [PATCH 4/4] ans 3.md --- questions-and-reviews/questions/3.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.