Discussion :: Javascript MCQs
-
Consider the following statementsvar text = "testing: 1, 2, 3"; // Sample textvar pattern = /\d+/g // Matches all instances of one or more digitsIn 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