Sail E0 Webinar
Question
Consider the following statement containing regular expressions
var text = "testing: 1, 2, 3";
var pattern = /d+/g;
In order to check if the pattern matches, the statement is
Options:
A .  text==pattern
B .  text.equals(pattern)
C .  text.test(pattern)
D .  pattern.test(text)
Answer: Option D

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers