I am running into an issue formatting a javascript number. What is the equivalent of this csharp code in javascript:
var cSharpNumber = 10000;
string formattedNumber = cSharpNumber.ToString("#,###"); //this should show 10,000
I would like to avoid having to bring in other plugins if possible