Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
myArray.removeLast();
myArray.pop();
myArray.delete(myArray.length);
myArray[myArray.length] = null;
function myFunction() {}
var myFunction = function() {};
myFunction = function() {};
All of the above are correct.
What is the output of the following code snippet?
console.log(2 * "3");
5
6
9
23
console.log(Math.random() * 10);
a random number between 1 and 10
a random number between 0 and 10
10
null
console.log("hello".indexOf("l"));
1
2
3
4
console.log(5 > 2 && 2 < 4);
0
undefined
console.log(Math.floor(4.7));
4.7
0.7
Math.floor(number);
Math.round(number);
Math.ceil(number);
All of the above
if (typeof myArray === "array") {}
if (myArray.isArray()) {}
if (myArray === "Array") {}
if (Array.isPrototypeOf(myArray)) {}
console.log("hello".toUpperCase());
hello
HELLO