JavaScript data types and data structures Programming languages all have built-in data structures, but these often differ from one language to another. This article attempts to list the built-in data structures available in JavaScript and what proper…
//string.format String.prototype.format=function(){ var e = this, f = arguments.length; if (f > 0) { for ( var d = 0; d < f; d++) { e = e.replace(new RegExp("\\{" + d + "\\}", "g"), arguments[d]) } } return e }; JavaScr…