Skip to content

Commit e19cab7

Browse files
committed
negative to floodgate algorithms
1 parent a9f2eea commit e19cab7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

floodgate.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
function negativeToFloodgate(x) {
2+
for(i=0;i<negativeToFloodgate.length;i++){
3+
if (negativeToFloodgate[i]<0){
4+
negativeToFloodgate[i]='floodgate';
5+
}
6+
}
7+
}
8+
var x = [-2,-3,-5,0]
9+
negativeToFloodgate(x);

0 commit comments

Comments
 (0)