You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To complete this goal, you'll create a Node.js module that exports two functions: one to encode a string of alphanumeric characters into emoji, and another to decode an emoji message to the original string.
If you're not familiar with Node.js and/or ECMAScript 2015, you'll need to do some research to become familiar with these technologies. For compiling, consider using Babel.
Context
A cipher is "a secret or disguised way of writing; a code" (source: Google). Technically, a cipher is a mapping between two sets of symbols.
One of the earliest and simplest ciphers in history is something you may have played with as a child: a Caesar cipher.
Translating between different representations of data is a such a common task in programming, and a cipher is a good (and fun) way to become familiar with this process.
As you work on this goal, consider the following questions:
What does it mean to encode or decode something? Where else are these processes used?
Which characters will the cipher support? How will the mapping between characters and emoji be represented?
How should the functions respond to invalid input? What are the possible errors and how should they be handled?
Specifications
Code is packaged as a module that exports (at least) the two functions encode and decode.
Exported functions can encode and decode alphanumeric characters to/from emoji.
Tests for both encode and decode functions are included and passing.
All source code is written using ECMAScript 2015 syntax.
Source code contains a README.md file with instructions and example usage.
Required
Do not remove these specs - they are required for all goals.
The artifact produced is properly licensed, preferably with the MIT license.
Description
Let's build a cipher using emoji. High five! 馃檶馃徑
To complete this goal, you'll create a Node.js module that exports two functions: one to encode a string of alphanumeric characters into emoji, and another to decode an emoji message to the original string.
Here's an example usage:
If you're not familiar with Node.js and/or ECMAScript 2015, you'll need to do some research to become familiar with these technologies. For compiling, consider using Babel.
Context
A cipher is "a secret or disguised way of writing; a code" (source: Google). Technically, a cipher is a mapping between two sets of symbols.
One of the earliest and simplest ciphers in history is something you may have played with as a child: a Caesar cipher.
Translating between different representations of data is a such a common task in programming, and a cipher is a good (and fun) way to become familiar with this process.
As you work on this goal, consider the following questions:
Specifications
encode
anddecode
.encode
anddecode
functions are included and passing.README.md
file with instructions and example usage.Required
Do not remove these specs - they are required for all goals.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
The text was updated successfully, but these errors were encountered: