What,s wrong with that code? (javascript)

https://pastebin.com/JSmAhGft

1 Like

Nothing at all if it behaves like you expect.
Does it behave differently? If so, what is that difference and what’s preventing you from figuring out how to eliminate that difference?

1 Like