Quiz Question 1 of 6
In what scenario would a web developer choose to use JavaScript's fetch()
API for form submission over the traditional HTML form submission?
Choose the correct answer below:
-
A
When there is no need to collect user input before sending data.
-
B
When the server endpoint strictly requires data in JSON format.
-
C
When the application needs to avoid a full page reload and only update specific parts of the page.
-
D
When the developer wants the browser to navigate to a new page after form submission.