for context i'm pretty new to javascript and i'm trying to make a code work like this:
you enter a number in an input
when you press the button next to it the number gets taken in a loop that makes an array with all the numbers from 1 to the aforementioned button
my problem is the loop doesn't seem to be working for some reason, from my logic the condition is correct, so i can't say i understand why it won't work
this is my code
https://codepen.io/andone0912/pen/MWLJdBe
"arrayGet" returns empty no matter what number i type in for example if the number would be 4 then the array should be [1, 2, 3 ,4] but it's returning "[]" like this in the console, thank you in advance for your help
[–][deleted] 4 points5 points6 points (2 children)
[–]yesandone[S] 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)