diff --git a/records/repeat.js b/records/repeat.js index 9d5c8942..5a287691 100644 --- a/records/repeat.js +++ b/records/repeat.js @@ -2,7 +2,7 @@ function repeat(str, n) { let result = '' if (n > 0) { while(true) { - if (n & 1) retult += str + if (n & 1) result += str n >>> 1 if (n <= 0) break str += str