Skip to content

Koji23/recursion-practice

This branch is 1 commit behind HR45-Precourse/recursion-practice:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c4db710 · May 3, 2016

History

1 Commit
May 3, 2016
May 3, 2016
May 3, 2016

Repository files navigation

recursion-practice

Create a function using recursion called numToText which takes a string and returns a new string with all numeric numbers from the input string converted to their corresponding text words. You can assume that the numbers in the string are single digit numbers.

Can you implement this function in two different ways? One way involves creating an inner helper function, the other way does not use an inner function.

Extra Credit: Have the function handle numbers of any digit size.

Ex: numToText("I have 5 dogs and 6 ponies"); // returns "I have five dogs and six ponies

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%