stefanbund / 311

Interactive Web Development
33 stars 46 forks source link

Why do we use the : operator in objects? #15

Closed PatrickMinett closed 7 years ago

PatrickMinett commented 7 years ago

Why do we need to use : instead of =?

stefanbund commented 7 years ago

Great question, it's just how those object member variables are initialized

From Stefan Bund

On Jan 13, 2017, at 5:43 PM, PatrickMinett notifications@github.com wrote:

Why do we need to use : instead of =?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.