2021-09-04 게시 됨2021-09-04 업데이트 됨javascript몇 초안에 읽기 (약 56 단어)js number commaexample.js1234567891011121314{ const n = 11111111111111; console.log(n.toLocaleString()); // 11,111,111,111,111 // console.log(navigator.languages);}{ const n = 11111111111111; const nuberWithCommas = n.toLocaleString('ko-KR'); console.log(nuberWithCommas); // 11,111,111,111,111} 참고 https://stackoverflow.com/questions/2901102/how-to-print-a-number-with-commas-as-thousands-separators-in-javascript https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString js number commahttps://chinsun9.github.io/2021/09/04/js-number-comma/AuthorchinsungPosted on2021-09-04Updated on2021-09-04Licensed under#javascripttoLocaleString