return more than one value in function 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);