Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Well done!
You have completed Practice Classes in JavaScript!
You have completed Practice Classes in JavaScript!
Instruction
Creating a Class Solution
Solution
Your first code challenge in the Practices Classes in JavaScript practice session asked you to create a class called User and not add a constructor method to it.
A class declaration is short and simple.
class User {
}
The class declaration starts with the keyword class
. Then the name of the class, which is capitalized, is added, followed by a s...