
A Deep Dive Into Some Nooks and Crannies of JavaScript - JSJ 535
JavaScript Jabber
00:00
Top End vs Dot Com - What's Up With That?
Getters and setters are something that were really popular in object oriented languages a couple of years ago, and still are in some programming languages. In jarvascript, if you're accessing a property, you need to do it explicitly. If you want to use getters and setter,. you need toDo it by using the get and set the keywords. And then when you access that property, instead of just accessing a field, as it were, your getting the value from that property with a getter on. A great example of something that works like that is the length property for an aray because there needs to be some sort of calculation behind it. It actually needs to be
Play episode from 02:02
Transcript


