

MCQOPTIONS
Saved Bookmarks
1. |
Consider the following statementsvar text = "testing: 1, 2, 3"; // Sample textvar pattern = /d+/g // Matches all instances of one or more digitsIn order to check if the pattern matches with the string “text”, the statement is |
A. | ext==pattern |
B. | ext.equals(pattern) |
C. | ext.test(pattern) |
D. | attern.test(text) |
Answer» E. | |