let construct = function(name = "john", last = "marks") {
return {
name: name,
last: last,
};
};
let me = new construct("mike", "tyson");
console.log(me);
question from:https://stackoverflow.com/questions/65850550/is-the-following-way-also-correct-for-constructor-functions-in-javascript