I don't understand what >>= means (I thought greater than or equal to was >=) also what is: (times & 1) from below.
function repeat (string, times) {
var result = ''
while (times > 0) {
if (times & 1) result += string
times >>= 1
string += string
}
return result
}