Refer to the following code snippet and identify the use of thesubstring()andtoLowerCase()methods.
?
function pokerCard(cardSuit, cardRank) {

this.cardImage() = function() {
var suitAbbr = this.suit.substring(0, 1).toLowerCase();
return suitAbbr + this.rankValue + ".png";
}
}

A. To reset the text string in lowercase
B. To extract the last letter of the string in lowercase
C. To extract the first letter of the string in lowercase
D. To set the lowercase as default

Answer: C

Computer Science & Information Technology

You might also like to view...

As each new bulleted item is added, the entry is automatically ________ 1/4 inch

Fill in the blank(s) with correct word

Computer Science & Information Technology

An ID-based style element can also have subcategories of items or actions that further define how the ID-based style element appears.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology