<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Even Numbers from 1 to 100</title>
</head>
<body>
<script>
function saltarLinea() {
document.write("<br>");
document.write("<hr>");
}
function imprimir(frase) {
document.write("<big>" + frase + "</big>");
saltarLinea();
}
var i = 1; //stablish the lower limit capable number not the lower even number
while (i <= 100) {
var evenNumber = i * 2; //Generates even numbers
if (evenNumber <= 100) {
//stablish the upper limit capable number
imprimir(evenNumber);
}
i++;
}
imprimir("FIN");
</script>
</body>
</html>