var tensquared = (function(x) {return x*x;}(10));
Yes, perfectly
Error
Exception will be thrown
Memory leak
A. Yes, perfectly
function info()
{
int a=1;
int b=2;
return a*b;
}
document.write(info());
1
2
3
error
Alternative to if-else
Immediate if
If-then-else statement
Switch statement
decrements the total length by 1
increments the total length by 1
prints the first element but no effect on the length
updates the element
Reverses and stores in the same array
Reverses and concatenates the elements of the array
Reverses
Stores the elements of an array in normal order
RMI
Triggering Event
Preprocessor
Function/Method
var string2Num=parseInt(123xyz);
123
123xyz
Exception
NaN
Alternative to if-else
Immediate if
If-then-else statement
Switch statement
7.25
-7.25
7
-7
Keywords
Declaration statements
Data types
Prototypes
the head tag
the head or body
the title or head
after the body tag
function f(o)
{
if (o === undefined) debugger;
}
It does nothing but a simple breakpoint
It debugs the error in that statement and restarts the statements execution
It is used as a keyword that debugs the entire program at once
It is used to find error in the statement
function f(o)
{
if (o === undefined) debugger;
}
It does nothing but a simple breakpoint
It debugs the error in that statement and restarts the statements execution
It is used as a keyword that debugs the entire program at once
It is used to find error in the statement
continue statement
break statement
goto statement
return statement
Function prototype
Function literal
Function calling
Function declaration
for(var p in o)
console.log(o[p]);
for (var i = 0;i < a.length;i++)
console.log(a[i]);
for (int i = 0;i < a.length;i++)
console.log(a[i]);
for (var i = 0;i <= a.length;i++)
console.log(a[i]);
for (var i = 1;i < a.length;i++)
console.log(a[i]);
Ignores the statement
Prompts to complete the statement
Throws an error
Shows a warning
stand-alone expressions
basic expressions containing all necessary functions
contains variable references alone
contains only keywords
The interpreter stops its work
The interpreter throws another exception
The interpreter jumps to the nearest enclosing exception handler
The interpreter throws an error
const object1 = {};
a = Symbol('a');
b = Symbol.for('b');
object1[a] = 'harry';
object1[b] = 'derry';
const objectSymbols = Object.getOwnPropertySymbols(object1);
console.log(objectSymbols.length);
0
2
1
Error
var a1 = [,,,];
var a2 = new Array(3);
0 in a1
0 in a2
true false
false true
true true
false true
src
ext
script
link
If the object inherits enumerable properties
The object does not have the properties present in the integer array indices
The delete keyword is never used
Object.defineProperty() is not used
isPrototypeOf() method
equals() method
=== operator
==opertor
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
function output(option)
{
return (option ? yes : no);
}
bool ans=true;
console.log(output(ans));
Yes
No
Runtime error
Compilation error
x = ~-y;
w = x = y = z;
q = a?b:c?d:e?f:g;
x = ~(-y); w = (x = (y = z));
q = a?b:(c?d:(e?f:g));
x = a?b:(c?d:(e?f:g));
q = ~(-y); w = (x = (y = z));
x = (x = (y = z));w = ~(-y);
q = a?b:(c?d:(e?f:g));
x = ~(-y); w = (x = (y = z));
q = (c?d:(e?f:g));
var txt1 = good;
var txt2 = day;
document.getElementById(demo).innerHTML = txt1 + txt2;
good day
goodday
error
undefined
var tensquared = (function(x) {return x*x;}(10));
Yes, perfectly
Error
Exception will be thrown
Memory leak
Both a and b are equal in value, type and reference address
Both a and b are equal in value
Both a and b are equal in value and type
There is no such statement