1.

Consider the following statements.var t= "Example: 4, 5, 6"; // textvar p = / d+/g // Matches all instances of one or more digitsIn order to check if the pattern matches with the string t , the statement is

A. p.test(t)
B. t.test(p)
C. t.equals(p)
D. t==p
E. None of these
Answer» B. t.test(p)


Discussion

No Comment Found