Marcus Schumacher12,185 Points
Where to learn more about these kinds of JS object abilities?
At 3:50 in the video, what is going on here? Where can I read or learn more about this? I didn't know that objects in JS can have properties that are functions themselves. What would you call this kind of function declaration in an object?
At 6:48, how does this type of accessing work? Does it treat the object like an array? Whatever is in the brackets is selected from the object? What is this called? How could I learn more? Thanks. This is new stuff for me :)
Steven Parker177,888 Points
An object property that is also a function is known as a "method".
The access technique you are referring to is called "bracket notation". It's an alternative to the more commonly used "dot notation".