You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: page/javascript-101/syntax-basics.md
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -8,17 +8,17 @@ attribution:
8
8
9
9
### Comments
10
10
11
-
JavaScript has support for single- and multi-line comments. Comments are ignored by the JavaScript engine and therefore have no side-effects on the outcome of the program. Use comments to document the code for other developers. Libraries like [JSDoc](http://code.google.com/p/jsdoc-toolkit/"JSDoc Toolkit") are available to help generate project documentation pages based on commenting conventions.
11
+
JavaScript has support for single- and multi-line comments. Comments are ignored by the JavaScript engine and therefore have no side-effects on the outcome of the program. Use comments to document the code for other developers. Libraries like [JSDoc](https://code.google.com/p/jsdoc-toolkit/"JSDoc Toolkit") are available to help generate project documentation pages based on commenting conventions.
12
12
13
13
```
14
-
// Single and multiline comments.
14
+
// Single- and multi-line comments.
15
15
16
-
// This is an example of a singleline comment.
16
+
// This is an example of a single-line comment.
17
17
18
18
/*
19
19
* this is an example
20
20
* of a
21
-
* multiline
21
+
* multi-line
22
22
* comment.
23
23
*/
24
24
```
@@ -38,11 +38,11 @@ var world = "World!";
38
38
// Readable code is good!
39
39
var foo = function() {
40
40
41
-
for ( var i = 0; i < 10; i++ ) {
41
+
for ( var i = 0; i < 10; i++ ) {
42
42
43
-
alert( i );
43
+
alert( i );
44
44
45
-
}
45
+
}
46
46
47
47
};
48
48
@@ -75,17 +75,17 @@ var $my_AwesomeVariable = "d";
75
75
var _my_awesome_variable_$ = "e";
76
76
```
77
77
78
-
### Variable definition
78
+
### Variable Definition
79
79
80
-
Variables can be defined using multiple `var` statements, or in a single combined var statement.
80
+
Variables can be defined using multiple `var` statements, or in a single combined `var` statement.
0 commit comments