Javascript Objects Flashcards

1
Q

What data types can object properties hold?

A

Strings, booleans, numbers, null, undefined.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly