Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
What is the output of the following code snippet?
console.log(Math.random() * 10);
a random number between 1 and 10
a random number between 0 and 10
10
null
myArray[elementIndex]
elementIndex.myArray
myArray[elementValue]
myArray[elementIndex][elementValue]
string1.concat(string2);
string1 + string2;
string1.join(string2);
string1.append(string2);
console.log("hello".toUpperCase());
hello
HELLO
undefined
console.log(3 === "3");
1
0
console.log(5 > 2 && 2 < 4);
console.log(2 + "3");
23
5
console.log(typeof undefinedVariable);
number
string
boolean
console.log(Math.floor(4.7));
4.7
4
0.7
What is the output of the following program?
console.log(3 + 4 + "5");
12
75
345
7+5