From 2c8fdfbceb309516c4ad150930e22430cbab6cae Mon Sep 17 00:00:00 2001 From: David Date: Wed, 28 Mar 2012 15:58:46 -0300 Subject: [PATCH] OFF should be OOF (FOO backwards) --- general-patterns/conditionals.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/general-patterns/conditionals.html b/general-patterns/conditionals.html index be9fa5d..a13fac0 100644 --- a/general-patterns/conditionals.html +++ b/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