Which is the function used to loop in an array to view all the values?
A
all()
B
loop()
C
each()
D
every()
Correct Answer: each()
for.each() function is used for traversing through each values of the array. The method jQuery.each(array, function) loops through the array.