매일매일개발/Codewars
codewars #93 Number Format (6kyu)
개하싶
2018. 8. 8. 21:11
Format any integer provided into a string with "," (commas) in the correct places.
Example:
numberFormat(100000); // return '100,000'
numberFormat(5678545); // return '5,678,545'
numberFormat(-420902); // return '-420,902'