0

What is function return and how to use it?

29th Dec 2016, 6:10 AM
Vipul Aggarwal
Vipul Aggarwal - avatar
1 Answer
+ 1
the function behaves like the value itself it returns. return is output of function it is the result of codes see previous posts for example var a=6;. a is 6 var b=a;. b is 6; var c=func(a) c is 7 where func(a){ return a+1;}
29th Dec 2016, 11:48 AM
Sandeep Chatterjee