Skip to content

Instantly share code, notes, and snippets.

@brycetshaw
Last active September 10, 2021 16:24
Show Gist options
  • Save brycetshaw/2df001ee869e15f90e6c8dd2370973de to your computer and use it in GitHub Desktop.
Save brycetshaw/2df001ee869e15f90e6c8dd2370973de to your computer and use it in GitHub Desktop.
const queryString = (year, goals, page) => {
const rootUrl = 'https://jsonmock.hackerrank.com';
const queryString = `/api/football_matches?year=${year}&team1goals=${goals}&team2goals=${goals}&page=${page}`;
return rootUrl + queryString;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment