Your First fetch()
fetch() is built into every browser. Let's try it:
const response = await fetch('https://oim.108122.xyz/words/random');
const word = await response.json();
console.log(word);
Three steps: fetch the URL, convert to JSON, use the data.
Why await? Fetching data takes time (network delay). await says "wait here until the data arrives."