1
2
3
4
5
6
7
8
9
10
To practice on your own, or to check code you believe shouldn't have been scored as incorrect, go to CodePen.
0,1,2,3,4,5,6,7,8,9
0
0
0
0
Fill in the blank to append newNode to parentNode. | parentNode._______ (newNode); | appendChild | appendChild |
Fill in the blank to append newNode to parentNode. | parentNode._____________; | appendChild(newNode) | appendChild\(newNode\) |
In div1 replace oldP with newP . | div1.replaceChild(newP, oldP); | div1\.replaceChild\(newP,oldP\); | |
In citiesList remove thirdItem. | citiesList.removeChild(thirdItem); | citiesList\.removeChild\(thirdItem\); | |
In selectedDiv insert headingNew before heading1. | selectedDiv.insertBefore(headingNew, heading1); | selectedDiv\.insertBefore\(headingNew,heading1\); | |
A paragraph has been assigned to a variable, and some text has been assigned to a variable. Append the text to the paragraph. Make up the variable names. | bioParagraph.appendChild(newText); | [a-z_$][a-zA-Z0-9_$]*\.appendChild\([a-z_$][a-zA-Z0-9_$]*\); | |
A heading has been assigned to mainHead. The current text in the heading has been assigned to oldText. Replace oldText with text assigned to newText. | mainHead.replaceChild(newText, oldText); | mainHead\.replaceChild\(newText,oldText\); | |
A div has been assigned to theDiv. An image within the div has been assigned to oldImg. Insert an image assigned to newImg, before oldImg. | theDiv.insertBefore(newImg, oldImg); | theDiv\.insertBefore\(newImg,oldImg\); | |
|
|||
|