Skip to content
Justice Tech School

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

Which method sends data to create?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.