how to combine a post get request fetch javascript code example
Example: .fetch method
fetch('http://example.com/data.json')
.then(data => data);
.catch(err => console.log(err));
fetch('http://example.com/data.json')
.then(data => data);
.catch(err => console.log(err));