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 44e27ed commit 102d8a9Copy full SHA for 102d8a9
1 file changed
Week3/homework/step2-3.js
@@ -2,7 +2,7 @@
2
3
// Use a 'for' loop
4
function repeatStringNumTimesWithFor(str, num) {
5
- // eslint-disable-next-line
+ // eslint-disable-next-line prefer-const
6
let result = '';
7
8
// Replace this comment and the next line with your code
@@ -15,7 +15,7 @@ console.log('for', repeatStringNumTimesWithFor('abc', 3));
15
16
// Use a 'while' loop
17
function repeatStringNumTimesWithWhile(str, num) {
18
19
20
21
@@ -28,7 +28,7 @@ console.log('while', repeatStringNumTimesWithWhile('abc', 3));
28
29
// Use a 'do...while' loop
30
function repeatStringNumTimesWithDoWhile(str, num) {
31
32
33
34
0 commit comments