JavaScript(js) 숫자 가격 표시 천단위 콤마(javascript(js) thousand separator) function numberWithCommas(x) { return x.toString().replace(/\B(?TEST function numberWithCommas(x) { return x.toString().replace(/\B(? ${result}`); return pass; } let failures = 0; failures += !test(0, "0"); failures += !test(100, "100"); failures += !test(1000, "1,000"); failures += !test(10000, "10,000"); failures += !test(100000..