Mengirim Fetch dengan permintaan sebagai input (perhatikan klon ())

/*Note the clone()  on either the request or response. Generally, we add it to the Request or we will not get our data*/
const myRequest = new Request('/test',{method:"POST", body: JSON.stringify({name:"HELLO"}), headers: {'Content-type': 'application/json; charset=UTF-8'}});
 
 let r = await fetch(myRequest.clone());
 let w = await r.json()
 console.log(w.name);


/*OR*/


	const myRequest = new Request('/test',{method:"POST", body: JSON.stringify({name:"HELLO NURSE"}), headers: {'Content-type': 'application/json; charset=UTF-8'}});
 
let r = await fetch(myRequest);
let w = await r.clone().json()
console.log(w.name);
Javasper