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