Home › Forums › JavaScript › Why this function doesn’t work in ‘for loop’ ? [jquery] › Re: Why this function doesn’t work in ‘for loop’ ? [jquery]
March 10, 2013 at 11:16 am
#127670
Participant
the num of the inputs is taken from the match function which returns a string, so you dont have 2 for example but ‘2’ . with +’2′ the string ‘2’ becomes the number 2