Vidyalelo
JavaScript · Q67

Classes And Modules

Programming · JavaScript · question 67

Q67

Which of the following is an example to perform the most common XML manipulations using the XML objects invocation?

A.
insertChildBefore()
Answer
B.
insertChildAfter()
C.
appendChildAfter(…)
D.
appendChildBefore(…)

Answer: Option A

Solution

Answer: Option A
Solution:
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: