Answers for "javascript initcap string"

6

how to capitalize string in javascript

const name = 'flavio'
const nameCapitalized = name.charAt(0).toUpperCase() + name.slice(1)
Posted by: Guest on August-13-2020
0

find capital word in string javascript

const str = "HERE'S AN UPPERCASE PART of the string";
const upperCaseWords = str.match(/(\b[A-Z][A-Z]+|\b[A-Z]\b)/g);

console.log(upperCaseWords);
Posted by: Guest on May-04-2021
0

capitalize a string javascript

const Capitalize = function(string){
  return string[0].toUpperCase + string.slice(1).toLowerCase;
}
Posted by: Guest on March-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language