1.

State whether the following statements are True or False for inserting nodes.i) If you pass null in the second argument, the insertBefore() behaves like appendChild() and inserts at the end.ii) If you call appendChild() or insertBefore() to insert a node that is already in the document, that node will automatically be removed from its current position and reinserted at its new position.

A. i-True, ii-False
B. i-False, ii-True
C. i-False, ii-False
D. i-True, ii-True
Answer» E.


Discussion

No Comment Found