return multiple values?

Posted by user295189 on Stack Overflow See other posts from Stack Overflow or by user295189
Published on 2010-05-26T22:06:55Z Indexed on 2010/05/26 22:11 UTC
Read the original article Hit count: 292

I am trying to return two values in javascript
is that possible?

var newCodes = function(){  
    var dCodes = fg.codecsCodes.rs; // Linked ICDs  
    var dCodes2 = fg.codecsCodes2.rs; //Linked CPTs       
    return dCodes, dCodes2;  
};

Thanks

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about javascript-events