1
Faaaala staff, I have a question...
Why when I pass two values per parameter in this division function is returning Nan? If I add values the variables before that is fine. But when I pass the function call the problem appears.
var divicao = function (valor1, valor2){
var resultado = valor1 / valor2;
return resultado;
}
Example where to return Nan:
console.log(divicao(1/2));
You could add an example of use that returns a question
NaN
?– Costamilam
Yes I will add, pardon me
– Bussola