+ 2

how i can get the result boolean of the any function

hi comunity please you can help me, i need know how i can get the return, the result, whatever of a function and use it in other function or variable in javascript

21st May 2018, 8:25 PM
Victor Emmanuel Reina Liscano
Victor Emmanuel Reina Liscano - avatar
4 Antworten
+ 3
function obj(){ return 5; } var a=obj() //a is now 5
21st May 2018, 8:34 PM
᠌᠌Code X
᠌᠌Code X - avatar
+ 2
A fun can also accept arguments... function sum(b,c){ return b+c; } var x=3; var y=5; var a=sum(x,y); alert(a)
21st May 2018, 8:42 PM
Dario
Dario - avatar
0
thank my friend sesos
21st May 2018, 8:36 PM
Victor Emmanuel Reina Liscano
Victor Emmanuel Reina Liscano - avatar
0
function funcName(gets){ return true }
2nd Jul 2022, 8:02 PM
aliz6398suisiTerminatorEmpireBot
aliz6398suisiTerminatorEmpireBot - avatar