- Checkout the project:
git clone https://github.com/apexclearing/name-address-exercise.git
- Open
index.html
in your browser.
Return a list of names and addresses when provided one list of names and one list of addresses.
For instance, when provided:
const namesList = [
{
id: 1,
name: 'Clair Standish',
},
{
id: 2,
name: 'John Bender',
},
{
id: 3,
name: 'Allison Reynolds',
},
]
and
const addressesList = [
{
id: 1,
address: '1600 Pennsylvania Ave NW',
},
{
id: 2,
address: '11 Wall Street',
},
{
id: 3,
address: '350 Fifth Avenue',
},
]
log a list in the console:
[
{
id: 1,
name: 'Clair Standish',
address: '1600 Pennsylvania Ave NW',
},
{
id: 2,
name: 'John Bender',
address: '11 Wall Street'
},
{
id: 3,
name: 'Allison Reynolds',
address: '350 Fifth Avenue'
},
]
The only requirement is that you use Javascript. External libraries are optional.