I'm confused about the meaning of >>= (I thought it was greater than or equal to as >=). Can you also explain what (times & 1) means in the code snippet below?
function repeat (string, times) {
var result = ''
while (times > 0) {
if (times & 1) result += string
times >>= 1
string += string
}
return result
}