toLocaleString() changes behaviour after using toFixed method?

前端 未结 0 1584
野性不改
野性不改 2021-01-26 07:45

I was working on \'Formatting a number as price\' problem on codewars and thought to have finally solved it with this code:

var numberToPrice = function(number) {         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题