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. | const aRequest = new ___HttpRequest(); | XML | XML |
Fill in the blank. | const aRequest = new XML__________ | HttpRequest(); | HttpRequest\(\); |
Fill in the blank. | const aRequest ___________________ | = new XMLHttpRequest(); | =newXMLHttpRequest\(\); |
Create a new HTML request. Make up the object identifier. | const aRequest = new XMLHttpRequest(); | const[a-z_$][a-zA-Z0-9_$]*=newXMLHttpRequest\(\); | |
The request object is named x. Fill in the blank. | __________("GET", "sample-text-file-80mg.txt"); | x.open | x\.open |
Fill in the blank. | aRequest.open______ "sample-text-file-80mg.txt"); | ("GET", | \(•GET•, |
Fill in the blank. Make up the object identifier. | ______________"sample-text-file-80mg.txt"); | aRequest.open("GET", | [a-z_$][a-zA-Z0-9_$]*\.open\(•GET•, |
Open a file with the ".txt" extension. Make up the object identifier and the file name. | req.open("GET", "xyz.txt"); | [a-z_$][a-zA-Z0-9_$]*\.open\(•GET•,•.*\.txt•\); | |
Because of security protections, we can't make an HTTP request on CodePen, but we can still use CodePen for practice.
|
|||
|