JavaScript CRUD Functionality Using Fetch Requests

fetch('http://example.com/movies.json')
.then(response => response.json())
.then(data => console.log(data));
configurationObject = {
method: "POST",
headers: {
"Content-Type": "application/json",
"Accept": "application/json" },
body: /* Your data goes here */ };

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store