if they could just create a variable in the function and use the variable after the function has been called? further, what’s the purpose of ‘return’?
Yes, thats the purpose of return. Simply to use local variable(s) outside function.
Обсуждают сегодня