Solved

Consider the Following Statements Var Text = "Testing: 1, 2

Question 24

Multiple Choice

Consider the following statements var text = "testing: 1, 2, 3"; // Sample text var pattern = /\d+/g In order to check if the pattern matches with the string "text", the statement is


A) text==pattern
B) pattern.test(text)
C) text.test(pattern)
D) text.equals(pattern)

Correct Answer:

verifed

Verified

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

Related Questions