Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. Which looping statement allows XML tags to appear in JavaScript programs and adds API for operating on XML data?

  2. A.

     for loop

    B.

     while loop

    C.

     for/each loop

    D.

     all of the mentioned

    View Answer

    Workspace

    Answer : Option C

    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.


Be The First To Comment