1.

Which is the function used to loop in an array to view all the values?(a) all()(b) loop()(c) each()(d) every()The question was asked in an online quiz.My question is taken from Comparison of Core JavaScript versus Frameworks topic in division Caching, Debugging and Animation of JavaScript

Answer»

Correct OPTION is (c) each()

To EXPLAIN I WOULD say: for.each() function is used for traversing through each VALUES of the array. The METHOD jQuery.each(array, function) loops through the array.



Discussion

No Comment Found

Related InterviewSolutions