Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metric and Imperial Unit Converter

A simple unit converter that converts values between metric and imperial units.

Features

  • Converts meters and feet
  • Converts liters and gallons
  • Converts kilograms and pounds
  • Displays results up to three decimal places
  • Simple and responsive interface

What I Learned

While building this project, I practiced:

  • Selecting and updating DOM elements
  • Handling button click events
  • Reading and converting input values
  • Passing values into functions
  • Using template literals
  • Formatting numbers with toFixed()
  • Organizing HTML, CSS, and JavaScript into separate files

Built With

  • HTML
  • CSS
  • JavaScript

Live Demo

https://ghayas-unit-converter.netlify.app/

Author

Muhammad Ghayas

About

A simple metric and imperial unit converter for length, volume, and mass, built with HTML, CSS, and JavaScript. Shorter alternative: Convert length, volume, and mass between metric and imperial units.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages