We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Multiple Query Parameters

Query parameters are key/value pairs - that means there can be multiple pairs!

http://example.com?firstName=lane&lastName=wagner

In the example above:

  • firstName = lane
  • lastName = wagner

The ? separates the query parameters from the rest of the URL. The & is then used to separate each additional pair of query parameters after that.

Assignment

Jello's CEO has a new idea. They want us to implement a feature that allows users to see the issues with the lowest time estimate, and the number of issues shown depends on the user's availability.

Complete the fetchTasks function. It should add two query parameters to the URL passed to getIssues:

  • sort
  • limit
    • Low availability = 1 issue
    • Medium availability = 3 issues
    • High availability = 5 issues

The default sort order is ascending.