R

Ram Sharma • 193.86K Points
Coach

Q. Consider the following JavaScript statement containing regular expressions and check if the pattern matches?

Code:
var text = "lestfindcourse: 1, 2, 3";
var pattern = /d+/g;
  • (A) pattern.test(text)
  • (B) text.test(pattern)
  • (C) text.equals(pattern)
  • (D) text==pattern
  • Correct Answer - Option(A)
  • Views: 120
  • Filed under category JavaScript

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics