node js how to return more than one value code example
Example: return more than 1 value from function js
//Function that returns multiple values - Using destructuring
function foobar(foo, bar) {
return [foo, bar];
}
const [one, two] = foobar(1, 2);