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 x = 100;
document.getElementById(“demo”).innerHTML = x.NEGATIVE_INFINITY;
}
</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()
{
document.getElementById(“demo”).innerHTML = Number.NEGATIVE_INFINITY;
}
</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()
{
document.getElementById(“demo”).innerHTML = Number.MAX_VALUE;
}
</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.isSafeInteger(Math.pow(2, 53)-1)+”: 253-1
“;
document.getElementById(“demo”).innerHTML = res;
}
</script>
What will be the output of the following JavaScript code? <p id="demo"></p> <script> function myFunction() { ...
View QuestionWhich method of the iterable object returns an iterator object for the collection?
a) iterator() b) _iterator_() c) _iteration_() d) _return_iterator_() Answer: b Explanation: An iterable object represents a ...
View QuestionWhich exception does the Iterators throw from their next() method when there are no more values to iterate, that work on finite collections?
a) Exit Iteration b) Abort Iteration c) Abort d) Stop Iteration Answer: d Explanation: Iterators that work on ...
View QuestionWhich looping statement allows XML tags to appear in JavaScript programs and adds API for operating on XML data?
a) for loop b) while loop c) for/each loop d) do while loop Answer: c Explanation: The for/each loop ...
View Question
What will be the output of the following JavaScript code?
[x,y]=[y,x];
What will be the output of the following JavaScript code? [x,y]=[y,x]; a) Throws exception b) Swap the value ...
View Question
What will be the output of the following JavaScript code?
let x=x+1;
console.log(x);
What will be the output of the following JavaScript code? let x=x+1; console.log(x); a) 0 b) null c) Reference ...
View Question