On Nov 1, 7:06 pm, Anoop wrote:
> As per the MDN documentation:
> A for...in loop does not iterate over non–enumerable properties.
> Objects created from built–in constructors like Array and Object have
> inherited non–enumerable properties from Object.prototype and
> String.protottype
Neither
You've gotten some great answers to your question, but let me talk about
the question behind the question: What Google search would have explained
<< to you right away?
Searching for punctuation marks doesn't usually work very well, so what
keywords would work? Well, obviously, "javascript" for st
Those are Bitwise Operators.
https://developer.mozilla.org/en/JavaScript/Reference/Operators/Bitwise_Operators
"a << b" means shift "a" left by "b" bits. So, "0010 << 2" would be
"1000". And a single pipe is the bitwise "or" operator. So, "0010 |
1000" would be "1010".
Of course, if you're no
<< are bitwise operators in javascript.
https://developer.mozilla.org/en/JavaScript/Reference/Operators/Bitwise_Operators
--
Gary Katsevman
Computer Science Undergraduate
Northeastern University
gkatsev.com
On Wed, Nov 2, 2011 at 14:54, Matthew Bramer wrote:
> I was looking at GitHub at some so
I was looking at GitHub at some source code:
https://github.com/mbebenita/Broadway/blob/master/Play/play.js
and I found this function:
function getRGB(r, g, b) {
return r << 24 | g << 16 | b;
}
I've never used these expressions before and am having difficulty finding
information about them.