After my testing, it works fine whether I treat it as a method or a property, why is that?
Which way is better?
It's a method, but you may omit the parentheses.
2 Likes
After my testing, it works fine whether I treat it as a method or a property, why is that?
Which way is better?
It's a method, but you may omit the parentheses.