1.

Which looping statement allows XML tags to appear in JavaScript programs and adds API for operating on XML data?(a) for loop(b) while loop(c) for/each loop(d) do while loopThis question was posed to me in an international level competition.My query is from JavaScript Extensions topic in section Classes and Modules in JavaScript of JavaScript

Answer»

The correct answer is (c) for/each loop

Easy explanation: The for/each loop is a NEW LOOPING statement STANDARDIZED by E4X. E4X (ECMASCRIPT for XML) is a language extension that allows XML tags to appear literally in JavaScript programs and adds syntax and API for OPERATING on XML data.



Discussion

No Comment Found

Related InterviewSolutions