Solved

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

Question 23

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents