Skip to content

Commit

Permalink
[Type Casting & Coercion] fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hshoff committed Nov 8, 2012
1 parent b4cf723 commit 2dadef9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -833,8 +833,8 @@
var totalScore = this.reviewScore + ' total score';
```

- Use parseInt for Numbers and always with a radix for type casting.
- If for whatever reason you are doing some wild and parseInt is your bottleneck and need to use Bitshift for [performance reasons](http://jsperf.com/coercion-vs-casting/3), leave a comment explaining why and what you're doing.
- Use `parseInt` for Numbers and always with a radix for type casting.
- If for whatever reason you are doing something wild and `parseInt` is your bottleneck and need to use Bitshift for [performance reasons](http://jsperf.com/coercion-vs-casting/3), leave a comment explaining why and what you're doing.

```javascript
var inputValue = '4';
Expand Down

0 comments on commit 2dadef9

Please sign in to comment.