Consider The Following Javascript Statement Containing Regular #197
Consider the following JavaScript statement containing regular expressions and check if the pattern matches?</p> <pre><code class="language-javascript"> var text = "testing: 1, 2, 3"; var pattern = /d+/g; </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs106 Javascript. It can also be found in gs gs106 Classes and Modules - JavaScript Pattern Matching and Regular Expressions - Quiz No.1.
Consider the following JavaScript statement containing regular expressions and check if the pattern matches?
var text = "testing: 1, 2, 3"; var pattern = /d+/g;
text==pattern
text.equals(pattern)
text.test(pattern)
pattern.test(text)
Similar question(s) are as followings:
Online Quizzes of gs106 Javascript
Graphics and Rendering in JavaScript - Scripted Media - Quiz No.1
gs gs106 Javascript
Online Quizzes