JSFiddle - React, Tailwind, and code Playground
JavaScript 1.7
const cityAPI = 'https://www.mocky.io/v2/5a945fa435000074009b0e78';
async function app(){
const city1 = await fetch(cityAPI).then(r => r.json());
const city2 = await fetch(cityAPI).then(r => r.json());
console.log(city1.name);
console.log(city2.name);
}
app();