Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

first letter capital in jquery

// Define function to capitalize the first letter of a string
function capitalizeFirstLetter(string){
  return string.charAt(0).toUpperCase() + string.slice(1);
}

// Calling function and display the result
var str1 = 'hi there!';
str1 = capitalizeFirstLetter(str1);
document.write(str1); // Print: Hi there!
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to set element readonly using jquery 
Javascript :: install node js in manjaro 
Javascript :: Slick slider arrows change 
Javascript :: how to remove dash from string in javascript 
Javascript :: jquery run after page load 
Javascript :: 1 line uuid 
Javascript :: get current url host name in javascript 
Javascript :: reduce decimals to 4 digits javascript 
Javascript :: javascript get string between two parentheses 
Javascript :: jquery on body click 
Javascript :: arraylist of characters 
Javascript :: javascript generate unique letters and numbers id 
Javascript :: remove all inline css jquery 
Javascript :: how to fetch the selected value of dropdown jquery 
Javascript :: set value javascript by id 
Javascript :: javascript screen size 
Javascript :: Could not resolve dependency: peer react@"^18.2.0" from react-dom@18.2.0 
Javascript :: js fake await 
Javascript :: how to get year in react 
Javascript :: react empty space 
Javascript :: math.random javascript 
Javascript :: how to trigger change of summernote 
Javascript :: useeffect with axios react 
Javascript :: __WEBPACK_IMPORTED_MODULE_0_react___default.a.createContext is not a function 
Javascript :: jquery set checkbox checked 
Javascript :: python request text to dict 
Javascript :: styling scrollview height in react native 
Javascript :: append before jquery 
Javascript :: chai expect async throw 
Javascript :: javascript sum array values by key 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =