fetch('http://example.com/', {options})
.then(data => {
console.log(data);
})
.catch(err => {
console.log(err);
})
fetch("http://example.com/api/example", {
    method: "POST",
    body: JSON.stringify({
        data: "lolipop",
    }),
    headers: {
        "Content-type": "application/json"
    }
})
.then(response => response.json())
.then(json => console.log(json));
window.open('http://example.com');
document.location = 'http://example.com/''