Examveda
Examveda

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. all of the mentioned

Answer: Option C

Solution(By Examveda Team)

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.

Join The Discussion

Related Questions on Classes and Modules