constsendFromJavascript=()=>{letsendData="this is data";fetch("/myTest",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({"some_data":sendData})}).then((response)=>{response.json().then(data=>{console.log(data);});}).catch(err=>{console.log(err);});}