diff --git a/script.js b/script.js index 6582e0d..33a30e3 100644 --- a/script.js +++ b/script.js @@ -1,11 +1,24 @@ -console.log("hello script js"); +var fruitArray = []; var inputHappened = function(currentInput){ - console.log( currentInput ); - display( "WOW SOMETHING HAPPENED" ); -}; - -var display = function(stuffToDisplay){ - // your DOM manipulation code here - -}; + if (currentInput==1){ + document.getElementById("input").value=""; + fruitArray.push("🍍\n") + return output= fruitArray; + } + else if (currentInput==2){ + document.getElementById("input").value=""; + fruitArray.push("🍍🍍\n") + return output= fruitArray; + } + else if (currentInput==3){ + document.getElementById("input").value=""; + fruitArray.push("🍍🍍🍍\n") + return output= fruitArray; + } + else if (currentInput="clear"){ + + } + + +}; \ No newline at end of file