Objects Flashcards
1
Q
object constructor syntax
A
let user = new User();
2
Q
object literal syntax
A
let user = { };
3
Q
what are computed properties?
A
they are properties that are placed in square brackets during literal declaration of objects.