diff --git a/floodgate.js b/floodgate.js new file mode 100644 index 0000000..fe89c03 --- /dev/null +++ b/floodgate.js @@ -0,0 +1,9 @@ +function negativeToFloodgate(x) { + for(i=0;i threshold){ + count++; + } + } + console.log("There were", count+"values greater than, ",threshold +" in the array.") +} + +var test = [21, 3, 5, 6, 9, 11, 44, 45]; +var threshold = 6; + +arrayValuesGreaterThatY(test,threshold); diff --git a/dookieBreathe.test b/maxMinAvg.js similarity index 100% rename from dookieBreathe.test rename to maxMinAvg.js diff --git a/noNegativeNumber.js b/noNegativeNumber.js new file mode 100644 index 0000000..3eb6f5c --- /dev/null +++ b/noNegativeNumber.js @@ -0,0 +1,11 @@ +function noNegativeNumber(x) { + for(i=0;i