What is the difference between this object creation:
let person1 = new Object({name: “Mario”, age: 25});
And this:
let person1 = {name: “Mario”, age: 25};
Is there some? Thanks!
What is the difference between this object creation:
let person1 = new Object({name: “Mario”, age: 25});
And this:
let person1 = {name: “Mario”, age: 25};
Is there some? Thanks!
No real difference. More info.
So many ways to acomplish the same things can be a little overwhelming sometimes for me. But better to clear doubts.
Thank you for helping me with it!