错误变量名修改 even -> someEven, 优化js二维数组算法示例 #242
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
主要是3个改动:
1.变量even不存在,改someEven, 纯粹是笔误
2.改了下二维数组的写法,行和列更加直观
3.按行访问二维数组的示例写的有问题,如果增加一行就会输出exam 4 average: NaN,我已修复
另外,按行访问数组的示例中,我觉得行代表考试,列代表科目,这样看起来更加合理,也比较容易理解。但出于对原作者的尊重,我就没改,只改了他写的不对的地方