Thread: Help :(

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    8
    Rep Power
    0

    Help :(


    what would be the probable calling of the MyFunction ??
    how can we call such function ??
    tx

    function MyFunction(a)
    {
    return function(b)
    {
    return a+b;
    }
    }
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2006
    Posts
    40
    Rep Power
    9
    You call the function by typing
    MyFuction();
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    6
    Rep Power
    0
    You need to also have b as an input to MyFunction.

IMN logo majestic logo threadwatch logo seochat tools logo