Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #work #uppercase #javascript
ADD COMMENT
Topic
Name
7+9 =