C# has a feature that we can set the class instance properties on the element creation (without a constructor). like this:
var Joe = new Person() {
Age = 36,
Weight = 83
}
Do we have a similar thing in JS and PHP?
JS something like:
var ActionBox = document.createElement("div") {
className: "ActionBox"
};