What will be the output of the following JavaScript code? int a=0; for(a;a< 5;a++); console.log(a); a) 0
View Question
What will be the output of the following JavaScript code?
int size=5;
int a=5;
int size=4;
for(int j=size;j>=0;j–)
{
console.log(a);
a=a-2;
}
What will be the output of the following JavaScript code? int size=5; int a=5; int size=4; for(int j=size;j>=0;j--)
View Question
What will be the output of the following JavaScript code?
var a= 0;
var b = 0;
while (a < 3)
{
a++;
b += a;
console.log(b);
}
What will be the output of the following JavaScript code? var a= 0; var b = 0; while ...
View Question
What will be the output of the following JavaScript code?
var a = 10;
do {
a += 1;
console.log(a);
} while (a < 5);
What will be the output of the following JavaScript code? var a = 10; do { ...
View Question
What will be the output of the following JavaScript code?
function range(int length)
{
int a=5;
for(int i=0;i< length;i++)
{
console.log(a);
}
}range(3);
What will be the output of the following JavaScript code? function range(int length) { int a=5; for(int i=0;i< ...
View QuestionAmong the keywords below, which one is not a statement?
a) debugger b) with c) if d) use strict Answer: d Explanation: use strict is a directive ...
View Question
What could be the task of the statement debugger in the following JavaScript code?
function f(o)
{
if (o === undefined) debugger;
}
What could be the task of the statement debugger in the following JavaScript code? function f(o) {
View Question
What will be the role of the continue keyword in the following JavaScript code snippet?
while (a != 0)
{
if (a == 1)
continue;
else
a++;
}
What will be the role of the continue keyword in the following JavaScript code snippet? while (a != ...
View QuestionWhat will be the step of the interpreter in a jump statement when an exception is thrown?
a) The interpreter stops its work b) The interpreter throws another exception c) The interpreter jumps to the nearest ...
View QuestionWhat will happen if the body of a for/in loop deletes a property that has not yet been enumerated?
a) The property will be stored in a cache b) The loop will not run c) That property will ...
View Question