check if letter is uppercase javascript
const isUpperCase = (string) => /^[A-Z]*$/.test(string)
check if letter is uppercase javascript
const isUpperCase = (string) => /^[A-Z]*$/.test(string)
how to check string uppercase or lowersace using regex javascript
var regex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!#\*\?])(?=.{8,})/;
check to see if work is uppercase javascript
var word = 'apple' //Expected: false
//Use word[0] to grap the first letter
if (word[0] == word[0].toUpperCase()) {
//Word is uppercase
} else {
//Word is not uppercase
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us