<meta charset="UTF-8">
<script>
function pulaLinha() {
document.write("<br>");
}
function mostra(frase) {
document.write(frase);
}
var cont = 0;
while (cont <= 100) {
mostra(cont);
cont = cont + 2;
pulaLinha();
}
mostra("FIM");
</script>