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:
Verified
Q25: Identify the structure in which any function,
Q26: Identify the expression used to reference a
Q27: In an object literal, each _ pair
Q28: Which of the following objects is also
Q29: Which of the following methods is applied
Q31: Which of the following notations is used
Q32: Which of the following commands is used
Q33: Which of the following methods is applied
Q34: Identify the general syntax of the object
Q35: Identify the use of var objInstance =
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents