parse
a sync
defer
type
C. defer
int a=4;
int b=1;
int c=0;
If(a==b)
document.write(a);
else if(a==c)
document.write(a);
else
document.write(c);
4
1
Error
0
var values=[one,two,Three];
var ans=values.shift();
document.writeln(ans);
one
two
three
error
const obj1 =
{
property1: 21
}
const descriptor1 = Object.getOwnPropertyDescriptor(obj1, 'property1');
console.log(descriptor1.configurable);
console.log(descriptor1.enumerable);
true 21
true false
true true
false false
RMI
Triggering Event
Preprocessor
Function/Method
var count = 0;
while (count < 10)
{
console.log(count);
count++;
}
The values of count are logged or stored in a particular location or storage
The value of count from 0 to 9 is displayed in the console
An error is displayed
An exception is thrown
When the function is defined as a looping statement
When the function is defined as expressions
When the function is predefined
when the function is called
The property will be stored in a cache
The loop will not run
That property will not be enumerated
The property will be enumerated
Volatile variable
Mutable variable
Immutable variable
Dynamic variable
switch(expression)
{
statements
}
==
equals
equal
===
make all of the own properties of that object non configurable
to configure and bring a writable property
lock down objects into a known state and prevent outside tampering
to include new properties into the object
void
int
function
main
while (a != 0)
{
if (a == 1)
continue;
else
a++;
}
The continue keyword restarts the loop
The continue keyword skips the next iteration
The continue keyword skips the rest of the statements in that iteration
The continue keyword breaks out of the loop
Class, parameters, objects extensible flag
Prototype, class, objects parameters
Prototype, class, objects extensible flag
Native object, Classes and Interfaces and Objects extensible flag
Controlled loop constructs
Case checking constructs
Validation constructs
All of the mentioned
An integer
A String
An object
Floating point
function printArray(a)
{
var len = a.length, i = 0;
if (len == 0)
console.log(Empty Array);
else
{
do
{
console.log(a[i]);
} while (++i < len);
}
}
Prints the numbers in the array in order
Prints the numbers in the array in the reverse order
Prints 0 to the length of the array
Prints Empty Array
var c = counter(), d = counter();
c.count()
d.count()
c.reset()
c.count()
d.count()
1
0
Null
Undefined
var string2Num=parseInt(123xyz);
123
123xyz
Exception
NaN
switch(expression)
{
statements
}
==
equals
equal
===
function info()
{
int a=1;
int b=2;
return a*b;
}
document.write(info());
1
2
3
error
conditional block
block that contains a single statement
both conditional block and a single statement
block that combines multiple statements into a single compound statement
Ignores the statement
Prompts to complete the statement
Throws an error
Shows a warning
High level programming language
Assembly level programming language
Machine level programming language
Low level programming language
filter and fold
inject and fold
finger and fold
fold
in
exist
within
exists
var string1 = 123;
var intvalue = 123;
alert( string1 + intvalue );
123246
246
123123
Exception
Ignores the statement
Prompts to complete the statement
Throws an error
Shows a warning
125
25
5
Error
function compare()
{
int num=2;
char b=2;
if(a==b)
return true;
else
return false;
}
true
false
runtime error
compilation error
Primary expression
Functional expression
Invocation expression
Property Access Expression