I am a very novice programmer and a little fixated on practice.
I want to learn how to filter elements in an array based on the number of characters in each element (my array is a list of 30 states). Basically, the user enters sizes (the number 0-40, as well as the minimum and maximum) in two text fields and presses the enter button, then the array should be changed based on these numbers (deleting elements that do not meet the entered specifications),
I have HTML installed without any problems, but I'm completely stuck on Javascript. I tried to use a “filter”, but it doesn’t seem to do what I want.
Any help would be appreciated!
source
share