Exam-style question
Try this first
Explain how a browser JavaScript program can use a REST-based web application to update data in a database. Include the roles of the HTML file, REST API, HTTP method and SQL operation.
Answer and explanation
Concise answer
The JavaScript is referenced by an HTML file, such as index.html, and runs in the browser.
Why this is correct
A complete answer connects the browser-side JavaScript to the server-side REST API and identifies the specified mapping PUT to UPDATE. It should also recognise that the HTML file references the JavaScript and that communication uses HTTP.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
