--

This might be true in JavaScript but it doesn't have to be. Suppose you create a class to represent complex numbers. You might provide `conjugate( )` and `norm( )` as functions rather than properties. Those should only depend on the object's `re` and `im`, nothing else.

--

--

Alonso Del Arte
Alonso Del Arte

Written by Alonso Del Arte

is a Java and Scala developer from Detroit, Michigan. AWS Cloud Practitioner Foundational certified

No responses yet