1
var pulaLinha = function() {
document.write("<br>");
}
var mostra = function(frase) {
document.write(frase);
pulaLinha();
}
var calculaIMC = function(altura, peso) {
var imc = peso / (altura * altura);
return;
}
var alturaDoUsuario = prompt("Sua altura? ");
var pesoDoUsuario = prompt("Seu peso? ");
var imcDoUsuario = calculaIMC(alturaDoUsuario, pesoDoUsuario);
mostra("O seu imc é: " + imcDoUsuario);
And this
return;
?– Woss
Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful for you. You can also vote on any question or answer you find useful on the entire site (when you have 15 points).
– Maniero