Amy Blankenship
Aug 29, 2022

--

Why are calls to dog.leg[0].walk() ok, but dog.tail.wag() not? You still have to know about the internals of dog to do the second.

--

--

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

Responses (1)