Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Instantiating an Object Solution

Solution

In this code challenge, your job was to create a new instance of the User class and store it inside a variable called user1.

The variable could be declared with any of the variable declaration keywords var, const, or let. We’ll use const, but the code is valid regardless of your choice.

New instances of classes are created with the keyword new followed by the n...