Victor Kimura
asked on
returning array from function in Javascript
Hi,
I'm wondering why the following does not work:
How do I return the array?
Thank you<><
I'm wondering why the following does not work:
var aRetCalFinalAmt = [];
aRetCalFinalAmt['final_amount'] = final_amount;
aRetCalFinalAmt['monthlypayentamt'] = monthlypayentamt;
aRetCalFinalAmt['sPackageName'] = sPackageName;
aRetCalFinalAmt['desire_payment_month'] = desire_payment_month;
aRetCalFinalAmt['shipping'] = shipping;
return aRetCalFinalAmt;
How do I return the array?
Thank you<><
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No, I'm speaking Javascript with Eclipse or at least PHPEd, I don't know PHPStorm
ASKER
Ok, just thought you may know. Thanks, leakim971!
ASKER
but it returns successfully. Do you know what that is?