How should you complete the JavaScript code?
HOTSPOT You have the following markup. You need to create a single JSON object that directly contains the values from personForm and sends the object to a Web server API. The contents of the JSON object must have the format…