Answers for "javascript charat uppercase"

1

javascript separate words by capital letter

"thisIsATrickyOne".split(/(?=[A-Z])/);
Posted by: Guest on March-16-2021
0

return first letter of string javascript in uppercase

function capitalizeFirstLetter(string) {
  return string.charAt(0).toUpperCase() + string.slice(1);
}

console.log(capitalizeFirstLetter('foo')); // Foo
Posted by: Guest on August-31-2020
0

uppercase and lowercase letters in js

str.toLowerCase()
str.toUpperCase()
Posted by: Guest on March-09-2021
4

capitalise first letter js

const string = "tHIS STRING'S CAPITALISATION WILL BE FIXED."
const string = string.charAt(0).toUpperCase() + string.slice(1)
Posted by: Guest on September-03-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language