You develop a web application by using jQuery. You develop the following jQuery code: (Line numbers are
included for reference only.)
The web application exposes a RESTful web API that has an endpoint of/product/create.
You need to create a new product by using AJAX.
Which code segment should you insert at line 05?

A.
Option A
B.
Option B
C.
Option C
D.
Option D
Explanation:
* url: /product/create
This is the endproduct.
* datatype:
The type of data that you’re expecting back from the server.
* contentType (default: ‘application/x-www-form-urlencoded; charset=UTF-8’)
jQuery.ajax()
D is ok , but i think the A is correct to.
0
5
A is wrong due to the dataType
6
1
D is correct answer
7
0
Correnct answer is D . A is not due to it’s data type is xml end jquery serialize method returns json
8
0