A simple and responsive Currency Converter built with HTML, CSS, and JavaScript. The application fetches live exchange rates from a currency API and converts an entered amount from one currency to another.
- Convert currencies using live exchange rates
- Select From and To currencies
- Automatically update currency flags
- Validate the entered amount
- Fetch exchange rates using
fetch()andasync/await - Responsive and clean user interface
- HTML5
- CSS3
- JavaScript
- Currency API
- Flags API
- Font Awesome
Used to fetch the latest exchange rates.
Used to display the flag of the selected currency's country.
Currency-Converter/
│
├── index.html
├── style.css
├── app.js
├── codes.js
└── README.md
- Select the source currency.
- Select the target currency.
- Enter the amount.
- Click Exchange Rates.
- JavaScript sends a request to the Currency API.
- The exchange rate is retrieved using
async/await. - The amount is multiplied by the exchange rate.
- The converted amount is displayed on the page.
Add a screenshot of your project here:
While building this project, I practiced:
- DOM manipulation
- Events and event listeners
- Working with
<select>elements - JavaScript objects and bracket notation
- Fetch API
- Promises
async/await- JSON data
- API URL construction
- Basic form validation
- Dynamic DOM updates
Clone the repository:
git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY.gitOpen the project folder and launch index.html in your browser.
Irbaz Abid
BS Computer Science Student | Aspiring Full-Stack Developer
GitHub: @irbaz-abid
⭐ If you find this project useful, consider giving the repository a star!