const fetchJson = async () => {
try {
const json = await getJson('/json/1')
if(json?.key){
const json2 = await getJson('/json/2')
return json2?.key2
}
throw new Error('No key')
}catch (err) {
console.error(err)
}
}
Code will run automatically after changes.
Code runs in an isolated environment.
Code runs in an isolated environment.