comparto mi actividad:
<meta charset="utf-8">
<body>
<div id="container"></div>
</body>
<script type="text/javascript">
var tanque = 40;
var klPorGasolina = 480;
var klPorAlcohol = 300;
const container = document.getElementById("container")
const title = document.createElement("h1");
title.textContent = "Alcohol o Gasolina?";
const section = document.createElement("section");
const textAlcohol = document.createElement("p");
textAlcohol.textContent = `El consumo de alcohol por kilometro es de: ${klPorAlcohol/tanque}`
const textGasolina = document.createElement("p");
textGasolina.textContent = `El consumo de gasolina por kilometro es de: ${klPorGasolina/tanque}`
section.append(textGasolina, textAlcohol)
container.append(title,section)
</script>