a) Reverses and stores in the same array b) Reverses and concatenates the elements of the array c) Reverses
View Question
What is the observation made in the following JavaScript code?
if (!a[i]) continue;
What is the observation made in the following JavaScript code? if (!a[i]) continue; a) Skips the defined ...
View QuestionThe pop() method of the array does which of the following task?
a) decrements the total length by 1 b) increments the total length by 1 c) ...
View Question
What will be the output of the following JavaScript code?
var a1 = [,,,];
var a2 = new Array(3);
0 in a1
0 in a2
What will be the output of the following JavaScript code? var a1 = [,,,]; var a2 = ...
View Question
What is the observation made in the following JavaScript code?
var count = [1,,3];
What is the observation made in the following JavaScript code? var count = [1,,3]; a) The omitted ...
View Question
What will be the output of the following JavaScript code?
const obj = {prop: 12};
Object.preventExtensions(obj);
console.log( Object.isExtensible(obj));
What will be the output of the following JavaScript code? const obj = {prop: 12}; Object.preventExtensions(obj); ...
View Question
What will be the output of the following JavaScript code?
const object1 = {
property1: 20
};
console.log(Object.is(object1));
What will be the output of the following JavaScript code? const object1 = { ...
View Question
What will be the output of the following JavaScript code?
const obj1 = { property1: ’10’};
const obj2 = Object.freeze(obj1);
obj2.property1 = ’20’;
console.log(obj2.property1);
What will be the output of the following JavaScript code? const obj1 = { property1: '10'};
View Question
What will be the output of the following JavaScript code?
const obj1 =
{
property1: 21
}
const descriptor1 = Object.getOwnPropertyDescriptor(obj1, ‘property1’);
console.log(descriptor1.configurable);
console.log(descriptor1.enumerable);
What will be the output of the following JavaScript code? const obj1 = { ...
View Question
What will be the output of the following JavaScript code?
const object1 = {};
a = Symbol(‘a’);
b = Symbol.for(‘b’);
object1[a] = ‘harry’;
object1[b] = ‘derry’;
const objectSymbols = Object.getOwnPropertySymbols(object1);
console.log(objectSymbols.length);
What will be the output of the following JavaScript code? const object1 = {}; a = ...
View Question