But we can return them in form of Array and Object. I would suggest to use the latest destructuring assignment (But make sure it's supported in your environment), I know of two ways to do this: is it possible to create an avl tree given any set of numbers? Solidity supports functions with multiple return values. rev 2021.1.20.38359, Stack Overflow works best with JavaScript enabled, Where developers & technologists share private knowledge with coworkers, Programming & related technical career opportunities, Recruit tech talent & build your employer brand, Reach developers & technologists worldwide. In JS, we can easily return a tuple with an array or object, but do not forget! Return expression {dCodes, dCodes2} is property value shorthand and is equivalent to this {dCodes: dCodes, dCodes2: dCodes2}.