DrSchool Hızlı kod öğren.
EN AR BN CS DE EL Ara

JS Referans: Fetch API

Fetch API için hızlı referans.

Okuma süresi: 1 min Kelime: 15
Playground'u aç → HTML İlerlemem

JS Referans — Fetch API

Fetch API için hızlı özet, sözdizimi ve örnek.

Sözdizimi

fetch(url).then(...).catch(...)

Örnek

async function load(){
  const res = await fetch("https://api.github.com/zen");
  const text = await res.text();
  console.log(text);
}
load();