Skip to main content

I have this simple javascript code 

var requestOptions = {
method: 'POST',
headers: {
"Content-Type":"text/plain"
},
body: inputDataa'html']
};
const url = 'my-url'
fetch(url, requestOptions)
callback(ull,{})

I dont want to wait for the fetch request to finish and return immediately. It seems like if i dont use “await”, the fetch function wont be invoked, but if i use await, the fetch function will be invoked. Is this expected behavior?