Advertisement
CLooker

Untitled

Dec 13th, 2017
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const newSurvey = [1,2,3,4];
  2. // send newSurvey to that route
  3. $.post("/api/friends", newSurvey).done(function(data) {
  4.         //server will do some stuff on the server to what you send
  5.         //then it sends it back (represented as data parameter here)
  6.         //then you can do what you need to do to it
  7.         //probably display the friend's name and picture
  8. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement