fix: declares index variable in Set challenges

pull/16232/head
Cassidy Pignatello 2017-12-20 14:00:39 -05:00
parent 3d86eaecbc
commit a79d5fec19
1 changed files with 5 additions and 5 deletions

View File

@ -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;",
" }",