8000 Update repeatString.spec.js · GeraldCO/javascript-exercises@6e02f72 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e02f72

Browse files
authored
Update repeatString.spec.js
1 parent 704a0f1 commit 6e02f72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

repeatString/repeatString.spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ describe('repeatString', function() {
2121
0 to 1, when this is multiplied by 1000 and rounded down with Math.floor it
2222
equals a number between 0 to 999 (this number will change everytime you run
2323
the test).*/
24+
25+
// DO NOT use Math.floor(Math.random() * 1000) in your code,
26+
// this test generates a random number, then passes it into your code with a function parameter.
27+
// If this doesn't make sense, you should go read about functions here: https://www.theodinproject.com/courses/web-development-101/lessons/fundamentals-part-3
2428
const number = Math.floor(Math.random() * 1000)
2529
/*The .match(/((hey))/g).length is a regex that will count the number of heys
2630
in the result, which if your function works correctly will equal the number that

0 commit comments

Comments
 (0)
0