console.log("Original: " + testMessage); console.log("Encoded : " + encodedMsg); console.log("Decoded : " + decodedMsg);

The objective of the "Create Your Own Encoding" exercise is to take a raw string of text and compress or transform it based on repeating characters. This concept is fundamentally known as . What is Run-Length Encoding?

The society became a fun and exciting way for them to communicate with each other, sharing jokes, stories, and secrets in a way that was both thrilling and secure.

: Ensure your input() string exactly matches what the CodeHS problem description requests. Extra spaces or missing colons can trigger a failure.

: Your encoder must handle spaces, numbers, and special symbols without crashing. Always include a final else block to catch characters that do not match your primary encoding rules.

. This is the smallest number of bits that can represent all 26 letters plus a space. Create the Character Map Assign a unique 5-bit string to every character. right arrow right arrow right arrow Encode the Required Phrase ("HELLO WORLD")