<meta charset="UTF-8">
<h1>Solo pares</h1>
<script>
function saltarLinea() {
document.write("<br>");
}
function imprimir(frase) {
document.write(frase);
saltarLinea();
}
var numeroinicial = 2;
while(numeroinicial <= 100){
imprimir(numeroinicial);
numeroinicial = numeroinicial + 2
}
imprimir("<h3>Fin</h3>");
</script>