neeratimounika / first_name_of_the_people

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

First Names of the People

Create a file index.js in the names directory.

Write a JS function in index.js with function name getPeopleInCity that accepts people names list and returns an array of containing the first names of the people.

Export the function using the default export syntax.

Folder Structure

country
    - state
        - city
            - index.js    // contains the people names list
utilities
    - utils
        - index.js        // contains a function that returns the first names of the people
names
    - index.js            // create the file and write your code here

Use the given modules.

Use Common JS module syntax.

About


Languages

Language:JavaScript 100.0%