-5
function alertarNumeroDeLampadas(){
var potencia = prompt ("Digite o valor da potência da lâmpada em watts: ");
var largura = prompt ("Digite o valor da largura do local(Metros): ");
var comprimento = prompt ("Digite o valor do comprimento do local(Metros): ");
resultado = (largura*comprimento)/potencia;
return resultado;
}
alert(alertarNumeroDeLampadas());

What’s the problem? What’s happening and what’s supposed to happen?
– Costamilam
What math I have to do to get to the bulb number ?
– Vinicius Batis
you need to consider your constant which is at least 18W per m², then you will know how many bulbs are needed.
– Leandro Angelo
Although the way the question was asked is in the mathematical operation, there is no doubt that it is a good exercise of functions in javascript (input via prompt and not numerical)
– user60252