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