Economic indicators

# Instant Answer for Economic Indicators

**What does your Instant Answer do?**

The Instant Answer provides values for Economic Indicators for  different countries.
The indicators considered are
- Gross Domestic Product
- Annual Growth Rate
- Per Capita Income


All data used in this instant answer comes form World Bank(http://data.worldbank.org)

**What problem does your Instant Answer solve (Why is it better than organic links)?**

It provides exact answer to specific queries. For example if I want know what the GDP of India, I will first have to go to the given organic link and look for the answer. My instant answer gives a specific answer for quries relating to gdp,per capita income and growth rate.

**What is the data source for your Instant Answer? (Provide a link if possible)**
Data Sources 
- Gross Domestic Product http://data.worldbank.org/indicator/NY.GDP.MKTP.CD
- Per Capita Income http://data.worldbank.org/indicator/NY.GNP.PCAP.PP.CD
- Annual Growth Rate http://data.worldbank.org/indicator/NY.GDP.MKTP.KD.ZG

**Why did you choose this data source?**

World Bank is the one of the most accurate and authentic sources of economic data. It is also the most comprehensive data source covering almost all countries.


**Are there any other alternative (better) data sources?**

There are alternative data sources but they are not better than World Bank data. The other data sources are are fragmented or limited to certain geographies.


**What are some example queries that trigger this Instant Answer?**
- what is the per capita income of china
- per capita income, japan
- what is the growth rate of indonesia
- malaysia growth rate
- gdp of india
- sri lanka gdp
- what is the gross domestic product of singapore?


**Which communities will this Instant Answer be especially useful for? (gamers, book lovers, etc)**
- students
- researchers


**Is this Instant Answer connected to a DuckDuckHack [Instant Answer idea](https://duck.co/ideas)?**

No


**Which existing Instant Answers will this one supercede/overlap with?**

Supercedes results from Zanran


**Are you having any problems? Do you need our help with anything?**

No


**Where did you hear about DuckDuckHack? (For first time contributors)**

HackerNews


**What does the Instant Answer look like? (Provide a screenshot for new or updated Instant Answers)**
![Chrome/Mac Screenshot](http://i.imgur.com/LOMoDcH.png)
![Chrome/Ubuntu Screenshot](http://i.imgur.com/bMkpyoX.png)
![Chrome/Android Screenshot](http://i.imgur.com/8ueqjQi.png)



## Checklist
Please place an 'X' where appropriate.

```
[X] Added metadata and attribution information (https://duck.co/duckduckhack/metadata)
[X] Wrote test file and added to t/ directory (https://duck.co/duckduckhack/goodie_tests)
[X] Verified that instant answer adheres to design guidelines (https://duck.co/duckduckhack/design_styleguide)
[X] Verified that instant answer adheres to code styleguide (https://duck.co/duckduckhack/code_styleguide)
[] Tested cross-browser compatibility

    Please let us know which browsers/devices you've tested on:
    - Windows 8
        [] Google Chrome
        [] Firefox
        [] Opera
        [] IE 10

    - Windows 7
        [] Google Chrome
        [] Firefox
        [] Opera
        [] IE 8
        [] IE 9
        [] IE 10

    - Windows XP
        [] IE 7
        [] IE 8

    - Mac OSX
        [X] Google Chrome
        [X] Firefox
        [] Opera
        [X] Safari

    - iOS (iPhone)
        [] Safari Mobile
        [] Google Chrome
        [] Opera

    - iOS (iPad)
        [] Safari Mobile
        [] Google Chrome
        [] Opera

    - Android
        [] Firefox
        [] Native Browser
        [X] Google Chrome
        [] Opera
```

Seeing as we have jQuery, I would suggest `$.isArray()`