// async function getdata() { // return new Promise((resolve, reject) => { // setInterval(() => { // resolve(455); // }, 40000); // }); // } async function getdata () { let x = await fetch ( "https://jsonplaceholder.typicode.com/todos/1" ); data = await x . json (); console . log ( data ); return 455 ; // .then((response) => response.json()) // .then((json) => console.log(json)); } async function postreqexample () { let x = fetch ( "https://jsonplaceholder.typicode.com/posts" , { method : "POST" , body : JSON . stringify ({ title : "foo" , body : "bar" , userId : 1 , }), headers : { "Content-type" : "application/json; charset=UTF-8" , }, }) . then (( response ) => res...