Skip to content
This repository has been archived by the owner on May 15, 2022. It is now read-only.

Commit

Permalink
Organizado o código
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarcon83 committed Mar 10, 2021
1 parent f8f5f4e commit 4f962c3
Showing 1 changed file with 13 additions and 22 deletions.
35 changes: 13 additions & 22 deletions Dia 30 - JS - Array/D30E1 - Exercícios Array.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
color: red;
}
</style>

<script>

// ▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲
Expand All @@ -47,7 +48,6 @@
}
</script>


<!-- <script>
// ▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲
Expand Down Expand Up @@ -92,13 +92,11 @@
// ▲▼▲▼▲▼▲▼ Exercício 2 ▲▼▲▼▲▼▲▼
// ▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲
let nums = [
obterNumero(),
obterNumero(),
obterNumero(),
obterNumero(),
obterNumero()
];
let nums = [];
for (i = 0; i < 5; i++) {
nums[i] = obterNumero();
}
escreverNaTela("Array ficou: ", arrayParaString(nums));
escreverNaTela("Invertida ela fica: ", arrayParaString(nums, true));
Expand All @@ -119,21 +117,17 @@
// ▲▼▲▼▲▼▲▼ Exercício 3 ▲▼▲▼▲▼▲▼
// ▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲
let pessoas = [
prompt("Digite um nome"),
prompt("Digite um nome"),
prompt("Digite um nome"),
prompt("Digite um nome"),
prompt("Digite um nome"),
prompt("Digite um nome")
];
let pessoas = [];
for (i = 0; i < 6; i++) {
pessoas[i] = prompt("Digite o nome de uma pessoa " + (i + 1) + "/6");
}
escreverNaTela("Array ficou: ", arrayParaString(pessoas));
</script> -->

<script>

<!-- <script>
// ▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲
// ▲▼▲▼▲▼▲▼ Exercício 4 ▲▼▲▼▲▼▲▼
// ▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲
Expand All @@ -154,10 +148,7 @@
}
return numInp;
}

</script>


</script> -->

</head>

Expand Down

0 comments on commit 4f962c3

Please sign in to comment.