How to pass values from one function to other in javascript

Hi all ,I am having a agent.In that agent i am returning the values to the javascript function say function a(a,b,c,d,e).I need to pass the

values from this function to another javascript function e.g function b(c,d,e).How do i pass the values from the function a to the function b .I h ave the javscript file under the Files with the extension .js

Subject: how to pass values from one function to other in javascript

Could you put function b inside function a? Or is there a certain task/result you are looking for?

Dan