question/add-comma-to-number #45
Replies: 1 comment
-
/**
* @param {number} num
* @return {string}
*/
function addComma(num) {
return num.toLocaleString('en-US');
} 但是我们此法有两个问题:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
question/add-comma-to-number
北美前端面试攻略
https://us-fe.github.io/question/add-comma-to-number.html
Beta Was this translation helpful? Give feedback.
All reactions