diff --git a/seed/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json b/seed/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json index 8a7cf3d2c98..11525bd8107 100644 --- a/seed/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json +++ b/seed/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json @@ -372,7 +372,7 @@ " // this method will remove an element from a set", " this.remove = function(element) {", " if(this.has(element)){", - " index = collection.indexOf(element);", + " var index = collection.indexOf(element);", " collection.splice(index,1);", " return true;", " }", @@ -424,7 +424,7 @@ " // this method will remove an element from a set", " this.remove = function(element) {", " if(this.has(element)){", - " index = collection.indexOf(element);", + " var index = collection.indexOf(element);", " collection.splice(index,1);", " return true;", " }", @@ -481,7 +481,7 @@ " // this method will remove an element from a set", " this.remove = function(element) {", " if(this.has(element)){", - " index = collection.indexOf(element);", + " var index = collection.indexOf(element);", " collection.splice(index,1);", " return true;", " }", @@ -550,7 +550,7 @@ " // this method will remove an element from a set", " this.remove = function(element) {", " if(this.has(element)){", - " index = collection.indexOf(element);", + " var index = collection.indexOf(element);", " collection.splice(index,1);", " return true;", " }", @@ -630,7 +630,7 @@ " // this method will remove an element from a set", " this.remove = function(element) {", " if(this.has(element)){", - " index = collection.indexOf(element);", + " var index = collection.indexOf(element);", " collection.splice(index,1);", " return true;", " }",