arcturo/library — Issue #28: Critical typo in javascript code (chapter #2)
Author: smashercosmo
Created: 2011-11-08 21:32:03+00:00
State: open

In the "Aliases & the Existential Operator" section there are two javascript code snippets:

```javascript
if (typeof brian !== "undefined" && brian !== null) {
praise;
}
```
and

```javascript
var velocity;
velocity = typeof southern !== "undefined" && southern !== null ? southern : 40;
```

I think that "&&" operator is wrong, and there should be "||" instead.