diff --git a/script.js b/script.js index bbe8a29..20a7d57 100644 --- a/script.js +++ b/script.js @@ -1,4 +1,22 @@ var main = function (input) { - var myOutputValue = 'hello world'; + var counter = 0; + var myOutputValue = '' + console.log('default \'myoutputvalue\'') + console.log('start outer counter'); + + + while (counter < input) { + console.log('start inner counter'); + var innerCounter = 0; + while (innerCounter < counter + 1) { + if (innerCounter % 2 == 0) { + myOutputValue = myOutputValue + '👍'; + } else myOutputValue = myOutputValue + '✊' + innerCounter = innerCounter + 1 + } + + myOutputValue = myOutputValue + '
' + counter = counter + 1; + } return myOutputValue; };