Solved

Refer to the Following Code Snippet and Identify the Use

Question 30

Multiple Choice

Refer to the following code snippet and identify the use of the substring() and toLowerCase() methods. function pokerCard(cardSuit, cardRank) { … this.cardImage() = function() { var suitAbbr = this.suit.substring(0, 1) .toLowerCase() ; return suitAbbr + this.rankValue + ".p ng"; } }


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

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents