DEV Community

Discussion on: 5 useful TypeScript tricks

Collapse
 
leob profile image
leob

I suppose that since that piece of code is within the scope of the setter it will assume that .name is the property, and not the setter itself?

Collapse
 
basilebong profile image
Basile Bong

I edited the setter/getter example. It will work properly and be more clear.