8 lines
172 B
JavaScript
8 lines
172 B
JavaScript
> user;
|
|
{ firstName: 'Michael', lastName: 'Hartl' }
|
|
> let otherUser = { firstName: 'Foo', lastName: 'Bar' };
|
|
> otherUser["firstName"];
|
|
'Foo'
|
|
> otherUser["lastName"];
|
|
'Bar'
|