<script>
function pulaLinha(){
document.write("<br>");
}
function mostra(frase){
document.write(frase);
pulaLinha();
}
var n = 20;
while (n >= 0){
mostra(n);
n = n - 1;
}
mostra("FIM");
</script>