Files
learn_enough_javascript_cod…/Listing_4.3.js
T
2022-01-12 14:58:42 -08:00

8 lines
172 B
JavaScript

> user;
{ firstName: 'Michael', lastName: 'Hartl' }
> let otherUser = { firstName: 'Foo', lastName: 'Bar' };
> otherUser["firstName"];
'Foo'
> otherUser["lastName"];
'Bar'