Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

snentence case capitalisation js

const string = "tHIS STRING'S CAPITALISATION WILL BE FIXED."
const string = string.charAt(0).toUpperCase() + string.slice(1)
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #snentence #case #capitalisation #js
ADD COMMENT
Topic
Name
2+8 =