It seems like in most mainstream programming languages, returning multiple values from a function is an extremely awkward thing.
The typical soluti
Even if you ignore the wonderful newer destructuring assignment Moss Collum mentioned, JavaScript is pretty nice on returning multiple results.
function give7and5() { return {x:7,y:5}; } a=give7and5(); console.log(a.x,a.y); 7 5