Skip to content

Commit 01aac53

Browse files
author
Aaron O'Mullan
committed
Fix typos in basics/comments.md
1 parent 1a9cd07 commit 01aac53

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

basics/comments.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Comments
22

3-
Comments are statements that will not be executed by the interpreter, comments are used to mark anotations for others programmers or to make it easy to understand your code in the future.
3+
Comments are statements that will not be executed by the interpreter, comments are used to mark anotations for others programmers or small descriptions of what your code does, thus making it easier for others to understand what your code does.
44

55
In Javascript, comments can be written in 2 different ways:
66

@@ -11,11 +11,11 @@ In Javascript, comments can be written in 2 different ways:
1111
var a = "this is a variable defined in a statement";
1212
```
1313

14-
* Section of code starting by `/*`and finishing by `*/`, this method is used for multi-lines comments:
14+
* Section of code starting with `/*`and ending with `*/`, this method is used for multi-line comments:
1515

1616
```javascript
1717
/*
18-
This is a multi-lines comment,
18+
This is a multi-line comment,
1919
it will be ignored by the interpreter
2020
*/
2121
var a = "this is a variable defined in a statement";
@@ -24,11 +24,13 @@ var a = "this is a variable defined in a statement";
2424

2525
---
2626

27-
Mark the all editor content as a comment
27+
Mark the editor's contents as a comment
2828

2929
```js
30+
3031
Mark me as a comment
3132
or I'll throw an error
33+
3234
```
3335
3436
```js

0 commit comments

Comments
 (0)