1.

Consider the following statements:var 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. text==pattern
B. text.equals(pattern)
C. text.test(pattern)
D. pattern.test(text)
Answer» E.


Discussion

No Comment Found