Skip to content

Commit ad24aea

Browse files
committed
Glasgow | 26-ITP-Jan| Fattouma Ouannassi | Sprint 1 | coursework
<!-- You must title your PR like this: Region | Cohort | FirstName LastName | Sprint | Assignment Title For example, London | 25-ITP-May | Carol Owen | Sprint 1 | Alarm Clock Fill in the template below - remove any sections that don't apply. Complete the self checklist - replace each empty box in the checklist [ ] with a [x]. Add the label "Needs Review" and you will get review. Respond to volunteer reviews until the volunteer marks it as "Complete". Please note: if the PR template is not filled as described above, an automatic GitHub bot will give feedback in the "Conversation" tab of the pull request and not allow the "Needs Review" label to be added until it's fixed. --> ## 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 /
1 parent 124ae45 commit ad24aea

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

Sprint-1/1-key-exercises/1-count.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ let count = 0;
22

33
count = count + 1;
44

5+
console.log(count);
6+
57
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
68
// Describe what line 3 is doing, in particular focus on what = is doing

Sprint-1/2-mandatory-errors/0.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
This is just an instruction for the first activity - but it is just for human consumption
2-
We don't want the computer to run these 2 lines - how can we solve this problem?
1+
/* This is just an instruction for the first activity - but it is just for human consumption
2+
We don't want the computer to run these 2 lines - how can we solve this problem?
3+
4+
//Answer
5+
//to write comments in JavaScript
6+
/* we use two forward slashes for single line , and Slash and Asterisk for Multi-line comment
7+
we comment out the two lines above to prevent them from being executed.*/

0 commit comments

Comments
 (0)