cvičně
Sem vložte podnadpis
fetch('https://example.com/data', {
method: 'POST',
body: JSON.stringify({ name: 'John', age: 30 }),
headers: { 'Content-Type': 'application/json' }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));
Vložte svůj text...