+ 1
Can someone explain me how?
For real, from where those numbers are coming from? 😂 https://code.sololearn.com/WYuYzLiLJYRX/?ref=app PS: Press Begin over and over again
5 odpowiedzi
+ 4
Grasshopper Hell Monkey
The problem is on line 50.
o.innerHTML = bunch.push(" ");
When the push function is executed a Number is returned
That Number, represents the new length of the array.
https://www.w3schools.com/jsref/jsref_push.asp
[Edit]
At line 80 the onclick event handler evokes the print function twice hence the appearance of counting by two. It doesn't matter that there is an empty string inside of the push function.
https://code.sololearn.com/W7R81F004VK5/#html
+ 4
What numbers ?
+ 3
Hey Grasshopper Hell Monkey !
Currently, it's a little difficult to understand what you may need help with, so clarifying a bit would help get you the best answer
https://www.sololearn.com/discuss/333866/?ref=app
+ 1
Thanks for the further explanation.
0
Sorry guys, i forgot to add the code 😅