100JSProjects
LearnProjectsExplore all projects
100JS_WORKSPACE/Build · Learn · Repeat
100JSProjects

Practical HTML, CSS, and JavaScript projects designed to help you turn concepts into real skills—one build at a time.

01Explore

./All projects./Learning guides./About./Contact./Privacy

02Resources

./GitHub repository./Support the project

© 2026 100 JS Projects. Built for developers.

TermsCookiesContact
JS//Projects/Weight Converter

Weight Converter

Build a weight converter with HTML, CSS, and JavaScript while practicing setTimeout and input events.

Intermediate30–45 minutesHTML5CSS3JavaScript
You’ll practice
setTimeoutInput EventsDOM Selection
View Source CodeLive Demo
demo.100jsprojects.com/weight-converter
Final resultWeight Converter project previewTry Live Demo
01 — What you’ll build

Weight Converter

In this project, we’re going to build a weight converter using HTML, CSS, and JavaScript. You’ll see how to convert a value and keep the result easy to understand. Along the way, you’ll practice setTimeout, input events, and DOM selection, so you can understand how the interface and JavaScript logic work together.

02 — Included
  • ✓Real-time input feedback
  • ✓Weight Converter interface
  • ✓Responsive HTML and CSS layout
  • ✓Complete source code and live demo
03 — You’ll practice
  • >Delay actions with setTimeout
  • >Respond to input changes
  • >Select HTML elements from the DOM
  • >Update content on the page
  • >Read and update form values
  • >Format numbers with toFixed

Recommended knowledge: Basic HTML and CSS, JavaScript functions and callbacks, Browser timers, JavaScript variables and number operations.

Complete project files

Build It from the Source Code

This project uses timed JavaScript updates.

  1. 1Create 3 files
  2. →
  3. 2Copy the code
  4. →
  5. 3Run index.html
Before you run it
  • Leave the tab open to see the timed behavior update.
Project structure
weight-converter/
├──
├──
└──
Need help setting up the project?

Create project files, install Live Server, and run your first project.

Open beginner guide
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Weight Converter</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <h1 class="heading">Weight Converter</h1>
        <div class="input-container">
            <label for="pounds">Pounds:</label>
            <input type="number" id="input" class="input" step=".1" placeholder="Enter number">
        </div>
        <p>Your weight in kg is: <span id="result"></span></p>
        <p class="error" id="error"></p>
    </div>
    <script src="index.js"></script>
</body>
</html>
JS// Related Projects

Practice with Related Projects

Practice input values, setTimeout, and number formatting with these related projects.

Currency Converter project preview★Best match
Related: input valuesIntermediate

Currency Converter

Read form values and use them in the project logic.

Build a currency converter →
Random Password Generator project preview
Related: setTimeoutIntermediate

Random Password Generator

Control delayed interface updates with browser timers.

Build a random password generator →
Temperature Converter project preview
Related: number formattingBeginner

Temperature Converter

Format numeric results before displaying them on the page.

Build a temperature converter →
Currency Converter project preview
Related: input values★Best match

Currency Converter

Read form values and use them in the project logic.

Build a currency converter
Random Password Generator project preview
Related: setTimeout

Random Password Generator

Control delayed interface updates with browser timers.

Build a random password generator
Temperature Converter project preview
Related: number formatting

Temperature Converter

Format numeric results before displaying them on the page.

Easier practice
Build a temperature converter
JS{ }Explore All JavaScript ProjectsBrowse by difficulty or concept.Explore All Projects