return multiple things code example
Example 1: python return array
def my_function():
result = []
#body of the function
return result
Example 2: javascript function multiple return
function doubleEachElement(num1, num2) {
return [num1 * 2, num2 * 2];
}
const [a, b] = doubleEachElement(68, 100);