Edit It: Use a method as a constructor function's prototype to access three objects' data
This code shows how to use a constructor function's prototype to access three objects' data.
See it on StackBlitzThis code shows how to use a constructor function's prototype to access three objects' data.
See it on StackBlitz