✅ How to return variables from a function
void method() doesnt allow me to use the variables inside it outside the function, how do i do this?
8 Replies
Make it not-void
$scope
you probably want
$scopes
$scopes
thing a
is available in scope A
and scope B
thing b
is available only in scope B
Angius
REPL Result: Success
Console Output
Compile: 594.482ms | Execution: 73.124ms | React with ❌ to remove this embed.
Here's how you can return a
string
from a method, for exampleoooooo ok thanks ill have a look