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

Commit

Permalink
Adicionado EX
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarcon83 committed Apr 9, 2021
1 parent b81cd89 commit a2c734c
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions React Dia 03 - Revisão/RD3E1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<!DOCTYPE html>
<html>

<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>EX JS</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<script>

// ▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼ IMC ▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼

// let peso = prompt("Digite um peso");
// let altura = prompt("Digite uma altura (metros)");

// const calcImc = (pes, alt) => {
// let imc = pes / (alt ** 2);
// if (imc < 18.5) return "MAGRO";
// if (imc < 25) return "NORMAL";
// return "SOBREPESO";
// }

// alert(calcImc(peso, altura));



// ▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼ Produto ▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼

// let nomeP = prompt("Digite o nome do produto.");
// let precoP = prompt("Digite o preco do produto.");

// const calcDesc = (nome, preco) => `Nome do Produto: ${nome} com desconto fica R$ ${preco * 0.8}`

// alert(calcDesc(nomeP, precoP));



// ▲▼▲▼▲▼▲▼▲▼▲▼ Imprimir Numeros ▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼

// let impt1 = prompt("Digite um número");
// let impt2 = prompt("Digite outro número");

// const mostrarEntre = (n1, n2) => {
// nMaior = Math.max(n1, n2);
// nMenor = Math.min(n1, n2);
// while ((nMenor + 1) <= (nMaior - 1)) {
// console.log(nMenor + 1);
// nMenor++;
// }
// };

// mostrarEntre(impt1, impt2);



</script>
</head>

<body>

</body>

</html>

0 comments on commit a2c734c

Please sign in to comment.