News for hackers. Stuff that matters.
Re:Javascript: call functions without using parentheses by pavel_lishin on Wednesday September 19, 2018 @04:04PM (#18027263)
Oh thank god, we saved ourselves six characters! And the only thing we sacrificed is knowing for sure whether we're accessing an object's property, or calling a method!
Re:Javascript: call functions without using parentheses by goatlover on Wednesday September 19, 2018 @04:46PM (#18027553)
It's all methods in Ruby. Properties are private. You access them via methods.