diff --git a/script.js b/script.js index bbe8a29..75a2cdd 100644 --- a/script.js +++ b/script.js @@ -1,4 +1,21 @@ var main = function (input) { - var myOutputValue = 'hello world'; + var myOutputValue = ''; + + var counter = 0; + while (counter < input) { + var innerCounter = 0; + while (innerCounter < input){ + if ((counter > 0 && counter < input - 1) && (innerCounter > 0 && innerCounter < input -1)){ + myOutputValue = myOutputValue + '🚽'; + } + else{ + myOutputValue = myOutputValue + '💩'; + } + innerCounter = innerCounter + 1; + } + myOutputValue = myOutputValue + '
'; + counter = counter + 1; + } + return myOutputValue; };