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...

Which of the following events is NOT a type of macro that can be created in Access?

A) stand-alone B) data C) embedded D) encapsulated

Computer Science & Information Technology

What would the July sales need to be to have a 20 percent decrease from June?

What will be an ideal response?

Computer Science & Information Technology

The Windows FTP command ____ lists the contents of a remote directly.

A. rm B. ls C. put D. get

Computer Science & Information Technology

?Websites that provide advertisers with information about your interests do so to generate revenue.

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

Computer Science & Information Technology