This returns the memory adress of the function, because you never call it. When creating a function and calling it with a specific name you can return data. To get this to work, instead you can use an anonymous function.
So, it’s basically like a variable for the function, hence the different address whenever an anonymous function is called. Also, I just wanted to know that, not why the script wasn’t returning 1.