how to check if the first letter of a string is capitalized or uppercase in js
/**** Check if First Letter Is Upper Case in JavaScript***/
function startsWithCapital(word){
return word.charAt(0) === word.charAt(0).toUpperCase()
}
console.log(startsWithCapital("Hello")) // true
console.log(startsWithCapital("hello")) // false
Also in JavaScript:
- node express server static files
- react how to manipulate children
- shuffle an array of numbers in javascript
- can we add jquery in chrome extension js code
- datatables get all rows
- expo navigation
- perform a function on each element of array javascript
- discord.js dm user
- jquery onclick function show alert
- javascript uppercase first letter of each word
- button not clicking for random jokes in javascript
- Run project in visual studio with iis express
- how to get date time day year in javscript
- empty array length javascript
- how to check if the first letter of a string is capitalized or uppercase in js
- what is a promise
- what foreach method returns in javascript
- w3schools ajax
- javascript remove last charter stings
- in select option how to make one default in angular
- ajax latest version
- js object properties
- javascript execute code on page load
- angular viewchild input element value