0
returning from function is calculating a value in a method and giving it back to the caller. it can increase code readability and reliability. example: var g = getMyValue (); function getMyValue (){ var a = 10*2; var squared = a*a return a*a; }
11th Oct 2017, 6:31 AM
Daniel S
Daniel S - avatar