{"ScriptPreparationCode":"var nf = new Intl.NumberFormat(\u0022en-US\u0022)\r\n\r\nfunction pricize (num) {\r\n const pieces = num.toString().split(\u0027\u0027)\r\n const len = pieces.length\r\n return pieces.reduce((result, chr, index, array) =\u003E {\r\n const pos = len - index\r\n result \u002B= (index !== 0 \u0026\u0026 pos % 3 === 0) ? \u0027,\u0027 \u002B chr : chr\r\n return result\r\n }, \u0027\u0027)\r\n}\r\n","TestCases":[{"Name":"toLocalString","Code":"var a = (10000).toLocaleString(\u0022en-US\u0022);","IsDeferred":false},{"Name":"Intl.NumberFormat","Code":" var a = nf.format(10000)","IsDeferred":false},{"Name":"string split \u0026 reduce","Code":"var a = pricize(10000)","IsDeferred":false}]}