how to return multiple values from a function javascript

JavaScript
var values = getValues();
var first = values[0];
var second = values[1];//function that returns multiple values
function getTopTwoColors() {
    return ["blue", "pink"];
}
var topTwoColors=getTopTwoColors();
var firstValue=topTwoColors[0]; //get first return value
var secondValue=topTwoColors[1]; //get second return value
Source

Also in JavaScript: