Glasgow | 26-ITP-Jan| Fattouma Ouannassi | Sprint 1 | coursework #957
Glasgow | 26-ITP-Jan| Fattouma Ouannassi | Sprint 1 | coursework #957FAprogrammerO wants to merge 1 commit intoCodeYourFuture:mainfrom
Conversation
<!-- 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 /
|
|
||
| count = count + 1; | ||
|
|
||
| console.log(count); |
There was a problem hiding this comment.
How would you describe what's happening on Line 3?
There was a problem hiding this comment.
Line 3 takes the current value of count, adds 1 to it, and stores the new value back in count.
| /* 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 |
There was a problem hiding this comment.
Great job! You have used a multiline comment accurately! But do you need the double slash comment inside a multiline comment?
There was a problem hiding this comment.
No, we do not need (double slashes) inside a multi-line comment. When we use /* to start and */ to end a multi-line comment, everything between them is already treated as a comment, so adding // inside it is unnecessary.
Poonam-raj
left a comment
There was a problem hiding this comment.
Great work so far - please see my comments and reply back to them - thanks!
Learners, PR Template
Self checklist
Changelist
This project focuses on learning how to use JavaScript methods and working with the browser console
Questions
/