SyntaxFix
Write A Post
Hire A Developer
Questions
The ucfirst function works if you do it like this.
ucfirst
function ucfirst(str) { var firstLetter = str.slice(0,1); return firstLetter.toUpperCase() + str.substring(1); }
Thanks J-P for the aclaration.