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'
'매일매일개발 > Codewars' 카테고리의 다른 글
codewars #94 The Hashtag Generator (5kyu) (0) | 2018.08.09 |
---|---|
codewars #92 Bit calculator (5kyu) (0) | 2018.08.07 |
codewars #91 Find X (6kyu) (0) | 2018.08.06 |
codewars #90 Cure Cancer (6kyu) (0) | 2018.08.01 |
codewars #89 Mexican Wave (6kyu) (0) | 2018.07.31 |