Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
What is the output of the following program?
console.log(3 + 4 + "5");
12
75
345
7+5
console.log("hello".toUpperCase());
HELLO
hello
hElLo
null
parseInt(string);
Number(string);
parseFloat(string);
All of the above
function myFunction() {}
var myFunction = function() {};
myFunction = function() {};
All of the above are correct.
myArray.removeLast();
myArray.pop();
myArray.delete(myArray.length);
myArray[myArray.length] = null;
number
string
array
tuple
string1.concat(string2);
string1 + string2;
string1.join(string2);
string1.append(string2);
What is the output of the following code snippet?
console.log(2 * "3");
5
6
9
23
console.log("hello".slice(1, 3));
hel
el
llo
What is the correct syntax for declaring a JavaScript variable?
var x;
x = var;
variable x;
x = variable;