Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 102d8a9

Browse files
committed
Fix ESLint directives
1 parent 44e27ed commit 102d8a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Week3/homework/step2-3.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// Use a 'for' loop
44
function repeatStringNumTimesWithFor(str, num) {
5-
// eslint-disable-next-line
5+
// eslint-disable-next-line prefer-const
66
let result = '';
77

88
// Replace this comment and the next line with your code
@@ -15,7 +15,7 @@ console.log('for', repeatStringNumTimesWithFor('abc', 3));
1515

1616
// Use a 'while' loop
1717
function repeatStringNumTimesWithWhile(str, num) {
18-
// eslint-disable-next-line
18+
// eslint-disable-next-line prefer-const
1919
let result = '';
2020

2121
// Replace this comment and the next line with your code
@@ -28,7 +28,7 @@ console.log('while', repeatStringNumTimesWithWhile('abc', 3));
2828

2929
// Use a 'do...while' loop
3030
function repeatStringNumTimesWithDoWhile(str, num) {
31-
// eslint-disable-next-line
31+
// eslint-disable-next-line prefer-const
3232
let result = '';
3333

3434
// Replace this comment and the next line with your code

0 commit comments

Comments
 (0)