Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
What is the output of the following program?
console.log(typeof "hello");
number
string
boolean
undefined
What is the output of the following code snippet?
console.log("hello".length);
hello
5
null
console.log(typeof undefinedVariable);
array
tuple
myArray.removeLast();
myArray.pop();
myArray.delete(myArray.length);
myArray[myArray.length] = null;
console.log(5 > 2 && 2 < 4);
1
0
console.log(3 === "3");
console.log(3 + 4 + "5");
12
75
345
7+5
function myFunction() {}
var myFunction = function() {};
myFunction = function() {};
All of the above are correct.
console.log(10 % 3);
3.33
3
0.3