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;
β
Correct Answer: (A)
pattern.test(text)
var text = "lestfindcourse: 1, 2, 3"; var pattern = /d+/g;
You must be Logged in to update hint/solution