Skip to content
Prev Previous commit
Next Next commit
Remove eslint-diable line
  • Loading branch information
Radhikajram committed Jul 29, 2019
commit 7b8d08cbe82cbf395524ed21cf94241902741304
3 changes: 0 additions & 3 deletions Week3/homework/step2-3.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

// Use a 'for' loop
function repeatStringNumTimesWithFor(str, num) {
// eslint-disable-next-line prefer-const
let result = '';
if (num <= 0) {
result = '';
Expand All @@ -21,7 +20,6 @@ console.log('for', repeatStringNumTimesWithFor('abc', 3));

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

if (num <= 0) {
Expand All @@ -42,7 +40,6 @@ console.log('while', repeatStringNumTimesWithWhile('abc', 3));

// Use a 'do...while' loop
function repeatStringNumTimesWithDoWhile(str, num) {
// eslint-disable-next-line prefer-const
let result = '';
if (num <= 0) {
result = '';
Expand Down
1 change: 0 additions & 1 deletion Week3/homework/step2-5.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

function multiplyAll(arr) {
// eslint-disable-next-line
let product = 1;

// Replace this comment and the next line with your code
Expand Down
1 change: 0 additions & 1 deletion Week3/homework/step3.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

function createBase(base) {
// Replace this comment and the next line with your code
// eslint-disable-next-line no-use-before-define
return function(add) {
return base + add;
};
Expand Down