From ad24aea0d5c39b3a3283a75f1ac90f5cba1f4a7c Mon Sep 17 00:00:00 2001 From: Fattouma Ouannassi Date: Tue, 10 Feb 2026 23:46:06 +0000 Subject: [PATCH] Glasgow | 26-ITP-Jan| Fattouma Ouannassi | Sprint 1 | coursework ## Learners, PR Template Self checklist - [x] I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title - [x] My changes meet the requirements of the task - [x] I have tested my changes - [x] My changes follow the [style guide](https://curriculum.codeyourfuture.io/guides/reviewing/style-guide/) ## Changelist This project focuses on learning how to use JavaScript methods and working with the browser console ## Questions / --- Sprint-1/1-key-exercises/1-count.js | 2 ++ Sprint-1/2-mandatory-errors/0.js | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Sprint-1/1-key-exercises/1-count.js b/Sprint-1/1-key-exercises/1-count.js index 117bcb2b6..0d2ac39e3 100644 --- a/Sprint-1/1-key-exercises/1-count.js +++ b/Sprint-1/1-key-exercises/1-count.js @@ -2,5 +2,7 @@ let count = 0; count = count + 1; +console.log(count); + // Line 1 is a variable declaration, creating the count variable with an initial value of 0 // Describe what line 3 is doing, in particular focus on what = is doing diff --git a/Sprint-1/2-mandatory-errors/0.js b/Sprint-1/2-mandatory-errors/0.js index cf6c5039f..ad5385f7c 100644 --- a/Sprint-1/2-mandatory-errors/0.js +++ b/Sprint-1/2-mandatory-errors/0.js @@ -1,2 +1,7 @@ -This is just an instruction for the first activity - but it is just for human consumption -We don't want the computer to run these 2 lines - how can we solve this problem? \ No newline at end of file +/* This is just an instruction for the first activity - but it is just for human consumption +We don't want the computer to run these 2 lines - how can we solve this problem? + +//Answer +//to write comments in JavaScript +/* we use two forward slashes for single line , and Slash and Asterisk for Multi-line comment +we comment out the two lines above to prevent them from being executed.*/ \ No newline at end of file