<meta charset="utf-8">
<script>
function pulaLinha(){
document.write("<br>");
}
function mostra(frase){
document.write(frase);
pulaLinha();
}
valor = 20;
while(valor>=0){
mostra(valor);
valor = valor -1;
}
mostra("Fim");
</script>