///
Quando carregada, essa página exibe:","answerCount":5,"datePublished":"2023-01-01T00:00:00-03:00","author":{"@type":"Organization","name":"FGV","url":"https://questionei.com"},"suggestedAnswer":[{"@type":"Answer","text":"O resultado é ... 400","position":1,"encodingFormat":"text/html","upvoteCount":0,"datePublished":"2023-01-01T00:00:00-03:00","url":"https://questionei.com/questoes/457941200314548/#alternativa-0","author":{"url":"https://questionei.com","@type":"Organization","name":"FGV"}},{"@type":"Answer","text":"resultado é ... false","position":2,"encodingFormat":"text/html","upvoteCount":0,"datePublished":"2023-01-01T00:00:00-03:00","url":"https://questionei.com/questoes/457941200314548/#alternativa-1","author":{"url":"https://questionei.com","@type":"Organization","name":"FGV"}},{"@type":"Answer","text":"O resultado é ... true","position":3,"encodingFormat":"text/html","upvoteCount":0,"datePublished":"2023-01-01T00:00:00-03:00","url":"https://questionei.com/questoes/457941200314548/#alternativa-2","author":{"url":"https://questionei.com","@type":"Organization","name":"FGV"}},{"@type":"Answer","text":"O resultado é ... undefined","position":4,"encodingFormat":"text/html","upvoteCount":0,"datePublished":"2023-01-01T00:00:00-03:00","url":"https://questionei.com/questoes/457941200314548/#alternativa-3","author":{"url":"https://questionei.com","@type":"Organization","name":"FGV"}},{"@type":"Answer","text":"O resultado é ... abc*+","position":5,"encodingFormat":"text/html","upvoteCount":0,"datePublished":"2023-01-01T00:00:00-03:00","url":"https://questionei.com/questoes/457941200314548/#alternativa-4","author":{"url":"https://questionei.com","@type":"Organization","name":"FGV"}}]}}
Analise o código a seguir.
<!DOCTYPE html>
<html>
<body>
<p id="e2"><span id="e1"></p>
<script>
let a = 12;
let b = 8;
let c = a+b;
try {
let xpto = eval("(a+b)*c");
document.getElementById("e1").innerHTML = xpto;
}
catch(err) {
document.getElementById("e1").innerHTML =
undefined;
}
finally {
document.getElementById("e1").innerHTML =
"O resultado é ... " +
document.getElementById("e1").innerHTML;
}
</script>
</body>
</html>
Quando carregada, essa página exibe: