Skip to content

Commit

Permalink
OFF should be OOF (FOO backwards)
Browse files Browse the repository at this point in the history
  • Loading branch information
David committed Mar 28, 2012
1 parent 0589ebb commit 2c8fdfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion general-patterns/conditionals.html
Expand Up @@ -130,7 +130,7 @@
console.log(result); //3
type == 'foo' && type2 == 'bar' && result == 3 && (result=0); //parentheses avoid "invalid assignment left-hand side" error
console.log(result); //0
type == 'OOF' || result++; //equivalent: type != 'OFF' && result++;
type == 'OOF' || result++; //equivalent: type != 'OOF' && result++;
console.log(result); //1


Expand Down

0 comments on commit 2c8fdfb

Please sign in to comment.