Skip to content

Commit

Permalink
added first helper for uppercasing a string's first letter
Browse files Browse the repository at this point in the history
  • Loading branch information
vb2007 committed Aug 5, 2024
1 parent 934760f commit d5ed8c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helpers/test-formatting.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
function capitalizeFirstLetter(string) {
var stringWithCapitalizedFirstLetter = string.charAt(0).toUpperCase() + string.slice(1);
return stringWithCapitalizedFirstLetter;
}

0 comments on commit d5ed8c0

Please sign in to comment.