Re:Hiring Front-End Engineers
by formika on Thursday January 20, 2011 @11:31PM
(#2126460)
What is this line of code saying exactly.. ?
[ Parent
| on HN ]
http://en.wikipedia.org/wiki/Ternary_operation
if (c < 4) {
c = c + 1;
} else {
c = 0;
}You could learn a couple of things just by looking the code of others. If you use jQuery you can see the source and find this kind of code in many places. Also:
var x = a || b || (function(){ /* stuff here */ })()
or var a = b = b || {}