File size: 566 Bytes
85784d8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
/**
*
* @param {Questao} questao
* @returns {HTMLDivElement}
*/
function QuestaoContainer(questao) {
const container = document.createElement("div");
container.className = "questao";
const pergunta = questao.getPergunta();
const resposta = questao.getResposta();
const perguntaParagraph = Paragraph(`<strong>Pergunta: </strong>${pergunta}`);
const respostaParagraph = Paragraph(`<strong>Resposta: </strong>${resposta}`);
container.appendChild(perguntaParagraph);
container.appendChild(respostaParagraph);
return container;
} |