3 ms·
What the function is returning should be clear from it's name. Repeating that in the return value variable is then redundant. I like naming my result variable
by BurningFrog 11y ago
What the function is returning should be clear from it's name.
Repeating that in the return value variable is then redundant.
I like naming my result variables `result`. It makes it clear when you first see it what it's for, without having to read the function to the end.