A responsive currency tracker web application built using HTML, CSS, and JavaScript. It allows users to see any selected amount in a base currency (like INR, USD, EUR) to a wide range of world currencies using real-time exchange rates. It gives list of countries of the currency amount.
π Live Demo Link β https://curencyconvert.netlify.app/
- β Real-time exchange rates using CurrencyAPI
- β Currency selection dropdown
- β Amount input with validation
- β Conversion results in a styled table
- β Error handling for failed API calls
- β Responsive design for mobile and desktop
Currency-Converter/
βββ index.html
βββ style.css
βββ script.js
βββ README.md
| Concept | How It's Used |
|---|---|
fetch + async/await |
To get data from the CurrencyAPI |
| DOM Manipulation | To update UI dynamically based on user input |
map() |
To iterate over currency data and render table rows |
| Event Listeners | For form submission and DOM events |
| Error Handling | Wrapped fetch in try-catch block with alert() fallback |
| Responsive CSS | Used media queries and flexbox/grid styling |
- Open the web app in a browser.
- Enter an amount in the input box.
- Choose a base currency (INR, USD, EUR).
- Click the Submit button.
- View the converted values for multiple currencies.
- Scroll down to see recent conversion history.
- HTML5
- CSS3 (Flexbox, Media Queries)
- Vanilla JavaScript (ES6+)
CurrencyAPI β Free tier used for real-time exchange rate data.