You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
function upper_case(str)
|
|
{
|
|
regexp = /^[A-Z]/;
|
|
if (regexp.test(str))
|
|
{
|
|
console.log("String's first character is uppercase");
|
|
}
|
|
else
|
|
{
|
|
console.log("String's first character is not uppercase");
|
|
}
|
|
}
|
|
upper_case('Abcd');
|
|
upper_case('abcd');
|