-2
Hello, I have to multiply using the function, are 3 calculations. When I do the following structure, only the last result appears in Return.
function multiplicar(){
return (7*5), (7*10), (50*0.5);
}
I tried using variation and it didn’t work either
function multiplicar(numeroA,numeroB,numeroC){
var numeroA = 7*5;
var numeroB = 7*10;
var numeroC = 50*0.5
var resultado = numeroA,numeroB,numeroC;
return resultado
You could help me by pointing out where I’m going wrong Thank you :)
Cannot return multiple values with comma as you are doing. Also show where you are using the supposed return of the function.
– Isac