What will be the result when non greedy repetition is used on the pattern /a+?b/? a) Matches ...
View QuestionWhat does /[^(]* regular expression indicate?
What does /[^(]* regular expression indicate? a) Match one or more characters that are not open parenthesis
View QuestionThe regular expression to match any one character not between the brackets is _________
a) […] b) [^] c) [^…] d) [\D] Answer: c Explanation: RegExp ...
View Question
Consider the following JavaScript statement containing regular expressions and check if the pattern matches?
var text = “testing: 1, 2, 3”;
var pattern = /d+/g;
Consider the following JavaScript statement containing regular expressions and check if the pattern matches? var text = "testing: ...
View QuestionThe ‘$’ present in the RegExp object is called a ____________
The ‘$’ present in the RegExp object is called a ____________ a) character b) matcher c) metacharacter d) metadata
View Question
What will be the output of the following JavaScript code?
<p id=”demo”></p>
<script>
function myFunction()
{
var res = “”;
res = res + Number.isInteger(0.5) + “: 0.5
“;
document.getElementById(“demo”).innerHTML = res;
}
</script>
What will be the output of the following JavaScript code? <p id="demo"></p> <script> function myFunction() { ...
View Question
What will be the output of the following JavaScript code?
<p id=”demo”></p>
<script>
function myFunction()
{
var res = “”;
res = res + Number.isInteger(‘123’);
document.getElementById(“demo”).innerHTML = res;
}</script>
What will be the output of the following JavaScript code? <p id="demo"></p> <script> function myFunction() { var res = ...
View Question
What will be the output of the following JavaScript code?
<p id=”demo”></p>
<script>
function myFunction()
{
var res = “”;
res = res + Number.isFinite(0 / 0);
document.getElementById(“demo”).innerHTML = res;
}
</script>
What will be the output of the following JavaScript code? <p id="demo"></p> <script> function myFunction() { ...
View Question
What will be the output of the following JavaScript code?
<p id=”demo”></p>
<script>
function myFunction()
{
var res = “”;
res = res + Number.isFinite(5-2) ;
document.getElementById(“demo”).innerHTML = res;
}
</script>
What will be the output of the following JavaScript code? <p id="demo"></p> <script> function myFunction() { ...
View Question
What will be the output of the following JavaScript code?
<p id=”demo”></p>
<script>
var x = 123e5;
document.getElementById(“demo”).innerHTML = x ;
</script>
What will be the output of the following JavaScript code? <p id="demo"></p> <script> var x = 123e5; document.getElementById("demo").innerHTML ...
View Question