Skip to content

Latest commit

 

History

History

Day 24 - Challenge

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Write Number in Expanded Form

You will be given a number and you will need to return it as a string in Expanded Form.

For example:

expandedForm(12); // Should return '10+2'

expandedForm(42); // Should return '40+2'

TEST CASES

TEST RESULT
expandedForm(12) should return '10+2'
expandedForm(42) should return '40+2'
expandedForm(734) should return '700+30+4'