Permalink
Browse files

OFF should be OOF (FOO backwards)

  • Loading branch information...
davidosomething committed Mar 28, 2012
1 parent 0589ebb commit 2c8fdfbceb309516c4ad150930e22430cbab6cae
Showing with 1 addition and 1 deletion.
  1. +1 −1 general-patterns/conditionals.html
@@ -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

0 comments on commit 2c8fdfb

Please sign in to comment.