Skip to content

CodingIsCaring/kata-hidden-word

Repository files navigation

Kata Hidden word

Maya writes weekly articles to a well known magazine, but she is missing one word each time she is about to send the article to the editor. The article is not complete without this word. Maya has a friend, Dan, and he is very good with words, but he doesn't like to just give them away. He texts Maya a number, and she needs to find out the hidden word. The words can contain only the letter: "a", "b", "d", "e", "i", "l", "m", "n", "o", and "c".

Luckily, Maya has the key:

"a" - 6 "b" - 1 "d" - 7 "e" - 4 "i" - 3 "l" - 2 "c" - 9 "n" - 8 "o" - 0 "m" - 5

You can help Maya by writing a function that will take a number between 100 and 999999 and return a string with the word.

The input is always a number, contains only the numbers in the key. The output should be always a string with one word, all lowercase.

Maya won't forget to thank you at the end of her article :)

https://www.codewars.com/kata/5906a218dfeb0dbb52000005

Steps to start the kata

  • npm install
  • npm run test or npm run test-watch

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published