Originally Posted by sbhmf
I want to create a js object [...]
[...] empty will have the property
this.ID = 5 in addition to all other Parameter properties... Basically a shallow copy. Parameter does not contain objects.
I cannot seem to get the syntax right. Assistance appreciated.
Where's the object you plan on copying the properties to?
is a function, not an object, so if you're trying to assign
), it's no surprise that your code isn't working.