Link to home
Start Free TrialLog in
Avatar of milani_lucie
milani_lucieFlag for United States of America

asked on

Usage of reference parameters and how it can be used in functions - JavaScript

Hi,

Can you please let me know with simple examples on:

Usage of reference parameters and how it can be used in functions - JavaScript

Thanks
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

like this

function a()
{
   alert("1");
}

//settimeout will use the function reference to call it

setTimeout(a, 1000); //a method will be called after a second
ASKER CERTIFIED SOLUTION
Avatar of Kiran Sonawane
Kiran Sonawane
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial