{"ScriptPreparationCode":null,"TestCases":[{"Name":"1","Code":"function capitalizeFirstLetter(string) {\r\n return string.charAt(0).toUpperCase() \u002B string.slice(1);\r\n}\r\n\r\ncapitalizeFirstLetter(\u0027string\u0027);","IsDeferred":false},{"Name":"2","Code":"function capitalizeFirstLetter(string) {\r\n return string.replace(/^./, string[0].toUpperCase());\r\n}\r\n\r\ncapitalizeFirstLetter(\u0027string\u0027);","IsDeferred":false},{"Name":"3","Code":"function capitalizeFirstLetter(string) {\r\n return string[0].toUpperCase() \u002B string.slice(1);\r\n}\r\n\r\ncapitalizeFirstLetter(\u0027string\u0027);","IsDeferred":false},{"Name":"4","Code":"String.prototype.capitalizeFirstLetter = function() {\r\n return this.charAt(0).toUpperCase() \u002B this.slice(1);\r\n}\r\n\r\n\u0027string\u0027.capitalizeFirstLetter();","IsDeferred":false},{"Name":"5","Code":"String.prototype.capitalizeFirstLetter = function() {\r\n return this[0].toUpperCase() \u002B this.slice(1);\r\n}\r\n\r\n\u0027string\u0027.capitalizeFirstLetter();","IsDeferred":false}]}