3 ms·
Not if the language uses implicit returns, as e.g. Ruby does. Then y * 2 is equivalent to return y * 2 when it is the last statement in the function.
by Kristine1975 11y ago
Not if the language uses implicit returns, as e.g. Ruby does. Then
y * 2
is equivalent to
return y * 2
when it is the last statement in the function.