0
Question about "return"
So I've been wondering about this piece of code I encountered in a challenge. function func(x,y){ return x; return y; return x-y; } func(6,2); What's the output?
1 Respuesta
+ 6
6.
When a return is called, it ends the function.