get and post
Shortcut methods for GET and POST.
Example
$.get("/api/items", function (data) {
console.log(data);
});
$.post("/api/items", { name: "pen" }, function (res) {
console.log(res);
});Exercise
POST.
$.("/api", data)
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.