SHARE
TWEET

Untitled

a guest Jun 19th, 2017 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function details()
  2. {
  3. var name ="aBC"
  4. var age =18;
  5. var rank=2;
  6.  
  7. var detail = new Array(name.age,rank);
  8. return detail;
  9. }
  10.  
  11. user = details();
  12. user_name = user[0];
  13. user_age = user[1];
  14. user_rank = user[2];
  15.  
  16. //why this is not working....user_name,user_age and user_rank are undefined...please help me
RAW Paste Data
Top