+ 1

How use a previous out value from a function in the next code

Imagine this: function op(o,p) {alert(p*o)} ts(5,6); How can I use the answer I get from the function above to write a new code.

29th Jul 2020, 4:24 PM
Anyanwu Johnbosco Chima
Anyanwu Johnbosco Chima - avatar
3 Respuestas
0
Function name(a,b){ var c = a*b ; return c ; } var d =5*name(4,5) ; // var d = 100 ;
29th Jul 2020, 8:04 PM
Divya Mohan
Divya Mohan - avatar
0
Return what you want and save it in a variable
29th Jul 2020, 5:24 PM
JME
0
How?
29th Jul 2020, 6:05 PM
Anyanwu Johnbosco Chima
Anyanwu Johnbosco Chima - avatar