We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0b6378 commit 3243748Copy full SHA for 3243748
Sprint-3/2-practice-tdd/repeat.js
@@ -1,7 +1,7 @@
1
function repeat(valueToRepeat, numOfTimes) {
2
- // Validate count
+ // Validate numOfTimes
3
if (!Number.isInteger(numOfTimes)) {
4
- return "Invalid count: count should be an integer";
+ return "Invalid numOfTimes: numOfTimes should be an integer";
5
}
6
if (numOfTimes < 0) {
7
return "Negative number invalid";
0 commit comments