Discussion :: Javascript - CS
-
Consider the following statements
var text = "testing: 1, 2, 3"; // Sample text
var pattern = /d+/g // Matches all instances of one or more digits
In order to check if the pattern matches with the string “text”, the statement is
Answer : Option D
Explanation :
The given pattern is applied on the text given in the parenthesis.
Be The First To Comment