I was going through a program solution “Finding Binary Gap” on different sites and I came across a symbol that I’ve never scene before in Javascript i.e ‘>>>=’.
I tried to understand but counldn’t.
for(var curr=0; n !== 0; n>>>=1) {
if(n % 2 === 0) {
curr++;
} else {
curr = 0;
}
maxZeros = Math.max(maxZeros, curr);
}
This was the code snippet.
Any idea, comment or reply is appreciated. Thank you.