HTML and CSS Reference
In-Depth Information
Which of the following code lines is the correct way create an object from a JSON
string stored in a variable called
jsonString
?
A.
var o = JSON.split(jsonString);
B.
var o = JSON.stringify(jsonString);
C.
var o = JSON.parse(jsonString);
D.
var 0 = JSON.join(jsonString);
1.
Which of the following code lines allows an
XMLHttpRequest
to return binary data?
A.
request.responseType = 'binary';
B.
request.responseType = 'image/jpg';
C.
response.type = 'blob';
D.
request.responseType = 'blob';
2.
How do you control what's sent to the server when submitting a form?
3.
Add a
submit
button to the form.
A.
Handle the
submit
event of the form.
B.
Specify the
action
attribute of the form element.
C.
Ensure that all elements on the form have a name.
D.
Search WWH ::
Custom Search