I was going through some code for prime numbers on Stack and found this.
I tried experimenting with this for sometime and figured this :
var i = 5;
var j = 0;
If i write j = i << 1, all it does is assigns (i * 2) ie - 10 in this case to j
If i write j = i << 2, (i * 2) * 2 ie - 10 * 2 .....and so on.
Now i have a doubt what actually this operator does ?
I tried googling this, but did not find any straight solution to this.