GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix typos in basics/comments.md · guptag-dev/javascript@01aac53

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • basics
    • comments.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎basics/comments.md‎

Copy file name to clipboardExpand all lines: basics/comments.md
+6-4Lines changed: 6 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.