Update httpPost.md

This commit is contained in:
Angelos Chalaris
2018-01-12 13:31:23 +02:00
committed by GitHub
parent 4c04c3e9e2
commit 1fe9572743

View File

@ -21,24 +21,6 @@ const httpPost = (url, callback, data = null, err = console.error) => {
```
```js
const newPost = {
"userId": 1,
"id": 1337,
@ -46,7 +28,7 @@ const newPost = {
"body": "bar bar bar"
};
const data = JSON.stringify(newPost);
httpPost('https://jsonplaceholder.typicode.com/posts', console.log, data; /*
httpPost('https://jsonplaceholder.typicode.com/posts', console.log, data); /*
Logs: {
"userId": 1,
"id": 1337,