I know this is silly but anyways I came across this code here in SO.
var total = 0;
for (var i = 0; i < someArray.length; i++) {
total += someArray[i] << 0;
}
This is getting the sum of array's values. But i do not understand the last line.
total += someArray[i] << 0;
//-----^^--here
What <<
means ? am i missing something all this while. and yes!! why <<
.