Question 7 Which of the following methods creates a new element that can be inserted in the DOM for a page? document.createNewNode document.createElement document.newElement document.newNode Question 8 Which of the following statements adds a new <li> element (myLI) to the end of a <ul> element (myList)? myList.add(myLl); OmyList.appendChild(myLI); O myList += = myLl; myList.addChild(myLI);
Which of the following statements inserts a list item (myLI) as the first element in a list (myList)? Assume items is an array containing the children of myList. myList.insertBefore(myLl, items[0]); Question 10 Which of the following statements would move a list item (myLI) from its original location in the DOM to another list (newList)? newList.appendChild(myLI); newList.move(myLI); myLl.move(newList); myLi.parent newList; = OmyList.insertFirst(myLl); O myList.putFirst(myLI); myList[0] = myLl;
Question 7 Which of the following methods creates a new element that can be inserted in the DOM for a page? document.cre
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am