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: CONTRIBUTING.md
+14-13Lines changed: 14 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -8,23 +8,23 @@ Welcome to [TheAlgorithms/Javascript](https://github.com/TheAlgorithms/Javascrip
8
8
9
9
### Contributor
10
10
11
-
We are very happy that you consider implementing algorithms and data structure for others! This repository is referenced and used by learners from around the globe. Being one of our contributors, you agree and confirm that:
11
+
We are very happy that you consider implementing algorithms and data structures for others! This repository is referenced and used by learners from around the globe. Being one of our contributors, you agree and confirm that:
12
12
13
13
- You did your work - plagiarism is not allowed.
14
14
- Any plagiarized work will not be merged.
15
15
- Your work will be distributed under [GNU License](LICENSE) once your pull request is merged
16
-
-You submitted work fulfils or mostly fulfils our styles and standards
16
+
-Your submitted work must fulfill our styles and standards
17
17
18
18
**New implementation** is welcome! For example, new solutions to a problem, different representations of a graph data structure or algorithm designs with different complexity.
19
19
20
20
**Improving comments** and **writing proper tests** are also highly welcome.
21
21
22
22
### Contribution
23
23
24
-
We appreciate any contribution, from fixing grammar mistakes to implementing complex algorithms. Please read this section if you are contributing your work.
24
+
We appreciate any contribution, from fixing grammar mistakes to implementing complex algorithms. Please read this section if you are contributing to your work.
25
25
26
26
27
-
If you submit a pull request that resolves an open issue, please help us to keep our issue list small by adding `fixes: #{$ISSUE_NO}` to your commit message. GitHub will use this tag to autoclose the issue if your PR is merged.
27
+
If you submit a pull request that resolves an open issue, please help us to keep our issue list small by adding `fixes: #{$ISSUE_NO}` to your commit message. GitHub will use this tag to auto-close the issue if your PR is merged.
28
28
29
29
#### What is an Algorithm?
30
30
@@ -61,17 +61,18 @@ To maximize the readability and correctness of our code, we require that new sub
61
61
- follow code indentation
62
62
- Always use 2 spaces for indentation of code blocks
63
63
```
64
-
function sumOfArray (arrayOfNumbers) {
65
-
let sum = 0
66
-
for (let i = 0; i < arrayOfNumbers.length; i++) {
67
-
sum += arrayOfNumbers[i]
68
-
}
69
-
return (sum)
70
-
}
71
-
72
-
```
64
+
function sumOfArray (arrayOfNumbers) {
65
+
let sum = 0
66
+
for (let i = 0; i < arrayOfNumbers.length; i++) {
67
+
sum += arrayOfNumbers[i]
68
+
}
69
+
return (sum)
70
+
}
71
+
72
+
```
73
73
- Avoid using global variables and avoid '=='
74
74
- Please use 'let' over 'var'
75
+
- Please use 'console.log()'
75
76
- We strongly recommend the use of ECMAScript 6
76
77
- Avoid importing external libraries for basic algorithms. Only use those libraries for complicated algorithms.
0 commit comments