Skip to content

Commit a8587e2

Browse files
committed
Change example comments
1 parent b563383 commit a8587e2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

JavaScript/1-identifiers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
// Arguments instead of mutable variables
3+
// Arguments instead of mutable variables assignment
44

55
const { PI, sqrt } = Math;
66
const square = x => x * x;

JavaScript/2-condition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
// Calls instead of if statement
3+
// Conditional expression instead of Conditional statement
44

55
const person = {
66
name: 'Marcus Aurelius',

JavaScript/3-iteration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
// Call or recursion instead of for loops
3+
// Recursion calls instead of for loops
44

55
const numbers = [2, 7, -1, -5, 8];
66

0 commit comments

Comments
 (0)