newcomers have a vague understanding.
Javascript and Jquery all return values.
such as $.each () returns an index and the value of that index.
$.each([52, 97], function(index, value) {
alert(index + ": " + value);
});
I later used a function, that is called by each iteration, which has two virtual parameters index,value
whether function must have two parameters, even if I do not need to go to one of them (for example, I only need the returned value instead of using the index of that value), I have to write two parameters. Are the
parameters returned sequentially?
is the parameter I can write as function (a), a b is the index, and b is the value of the index. It doesn"t matter the name, the key is the location?
or I will write which parameter I use. I don"t have to write all the parameters.
Thank you for taking the time to read my question. Thank you.