Usefulness. Having functions return stuff, instead of passing arguments by reference/pointer, is specially useful when you can use the return value in an expression, or argument to another function ...
If you’re returning information from a then or catch handler, it will always be wrapped in a promise, if it isn’t a promise already. So, you never need to write code like this: If you are unsure if ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results