InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is an example to perform the most common XML manipulations using the XML objects invocation?(a) insertChildBefore()(b) insertChildAfter()(c) appendChildAfter(…)(d) appendChildBefore(…)I got this question during an internship interview.This intriguing question comes from Shorthand functions and Multiple catch clauses in section Classes and Modules in JavaScript of JavaScript |
|
Answer» RIGHT CHOICE is (a) insertChildBefore() EASIEST EXPLANATION: E4X is designed so that you can perform most common XML manipulations using language syntax. E4X also defines methods you can invoke on XML OBJECTS. Here, for example, is the insertChildBefore() method: |
|