Returns a sorted list of given countries. Ordered from highest to lowest population size. Queries the World Population API.
Run npm install
to build the project.
Run npm test
or mocha test
.
All 3 tests should pass with flying colours.
Run e.g. node app.js "Greece, Brazil, France, Germany"
from your command line.
Brazil: 211785533
Germany: 80612060
France: 65026385
Greece: 10885390
Launch the program in the Visual Studio Code built-in debugger.
The .vscode/launch.json
configuration file will pass the example command-line argument "Greece, Brazil, France, Germany"
.
The Debug Console tab will display the output.