Course · Section 14: Object-Oriented Programming (OOP) With JavaScript · Lecture 221: Constructor Functions and the new Operator
Using a constructor function `User(name, age)` with the `new` operator, implement `makeUser(name, age)` returning a new user object with `name` and `age` properties.
+ 1 hidden test run on Submit.
new creates a fresh object, binds it to this in the constructor, and returns it with the assigned properties.
Run your code to see results.