I am trying to return two values in JavaScript. Is this possible?
var newCodes = function() { var dCodes = fg.codecsCodes.rs; va
It is possible to return a string with many values and variables using the template literals `${}`
like:
var newCodes = function() { var dCodes = fg.codecsCodes.rs; var dCodes2 = fg.codecsCodes2.rs; return `${dCodes}, ${dCodes2}`; };
It's short and simple.