Skip to content

Commit 99b3fee

Browse files
committed
converting error output to console when testing a function
1 parent f9a13da commit 99b3fee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function createRandomIntegerFromRangeGenerator (min, max) {
1212
return function () {
1313
let currentValue = getRandomInteger(min, max);
1414
if (previousValues.length >= (max - min + 1)) {
15-
console.error('Перебраны все числа из диапазона от ' + min + ' до ' + max);
15+
window.console.log(`Перебраны все числа из диапазона от ${min} до ${max}`);
1616
return null;
1717
}
1818
while (previousValues.includes(currentValue)) {

0 commit comments

Comments
 (0)