JavaScript Object-Oriented Programming

Object values

We've now created a property for our object. However, if we create another instance of the myFunc object (using the myFunc() constructor function), we also have to assign the StringValue (stringValue2) property to this new instance.