# Assignment

The assignment for this week is to build a currency calculator using [this API](https://open.er-api.com/v6/latest/USD).

Deliverable: a small browser application, so the user can interact with it and see the converted amount on the page.

## Technical specifications

1. Make a request to the API and use the response to obtain exchange rates and to populate the currency dropdowns.
2. The user can enter an amount.
3. The user can choose a currency to convert from (default: EUR).
4. The user can choose a currency to convert to (default: DKK).
5. When the amount, the "from" currency, or the "to" currency changes, show the equivalent amount in the "to" currency.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://program.hackyourfuture.dk/course-content/frontend/advanced-javascript/week3/assignment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
