3
I would like to know if there are possibilities to do this:
function trazerNumero(){
return 7;
}
function mostrarNumero(){
numero = trazerNumero();
alert(numero);
}
$(function(){
mostrarNumero()
})
I know you will talk that it is better to make a single method, but in what I want not to do this, I need to take a value that will be generated in another Function and use in another Function.
May pass the return of
trazerNumero
as an argument formostrarNumero
.– Renan Gomes