Skip to content

Commit 62afdb2

Browse files
Merge pull request ryanmcdermott#62 from vsemozhetbyt/typos
fix some typos in the README.md
2 parents 3ea61da + 2dc28e2 commit 62afdb2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ you should consider using TypeScript. It is an excellent alternative to normal
812812
JavaScript, as it provides you with static typing on top of standard JavaScript
813813
syntax. The problem with manually type-checking normal JavaScript is that
814814
doing it well requires so much extra verbiage that the faux "type-safety" you get
815-
doesn't make up for the lost readability. Keep your JavaScript, clean, write
815+
doesn't make up for the lost readability. Keep your JavaScript clean, write
816816
good tests, and have good code reviews. Otherwise, do all of that but with
817817
TypeScript (which, like I said, is a great alternative!).
818818
@@ -846,8 +846,8 @@ they are fixed if they can be.
846846
**Bad:**
847847
```javascript
848848

849-
// On old browsers, each iteration would be costly because `len` would be
850-
// recomputed. In modern browsers, this is optimized.
849+
// On old browsers, each iteration with uncached `list.length` would be costly
850+
// because of `list.length` recomputation. In modern browsers, this is optimized.
851851
for (let i = 0, len = list.length; i < len; i++) {
852852
// ...
853853
}

0 commit comments

Comments
 (0)