Javascript Objects Flashcards
1
Q
What data types can object properties hold?
A
Strings, booleans, numbers, null, undefined.
2
Q
Describe the syntax (structure) of object-literals in JavaScript.
A
Curly brace, list of properties, each property is key : value, with commas in between, end the objects with closing curly brace.