A simple Morse code translator built with HTML, CSS, and vanilla JavaScript.
The project provides a browser-based interface for converting text into Morse code and translating Morse code back into readable text.
- Convert text to Morse code
- Convert Morse code back to text
- Simple browser-based interface
- No frameworks or external libraries required
- Instant client-side translation
- HTML5 — Page structure
- CSS3 — Styling and layout
- JavaScript — Translation logic and user interaction
The application uses JavaScript to map characters to their corresponding Morse code representations.
For example:
HELLO
becomes:
.... . .-.. .-.. ---
The reverse mapping allows Morse code to be translated back into regular text.
All translation happens directly in the browser using client-side JavaScript.
morse-code-translator/
├── images/
├── index.html
├── script.js
└── style.css
Contains the structure and interface of the translator.
Handles the visual design, layout, and styling.
Contains the Morse code mapping and translation logic.
This project provided practice with the fundamentals of frontend development:
- Manipulating the DOM with JavaScript
- Handling user input and events
- Working with JavaScript objects as lookup tables
- Converting data between different representations
- Connecting HTML, CSS, and JavaScript in a browser application
- Building an interactive interface without a frontend framework
Completed
A small frontend project focused on practicing JavaScript logic and browser-based user interaction.