Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
==
===
<=>
!=
Hello + "world";
Hello.concat("world");
Both A and B
None of the above
What is the data type of a variable that stores a whole number in JavaScript?
Number
String
Boolean
Object
Null
Undefined
function myFunc() {}
let myFunc = function() {};
const myFunc = () => {};
All of the above are valid
typeof myVar;
myVar.type();
myVar.getType();
typeOf(myVar);
var myVar;
let myVar;
const myVar;
All of the above
var myArr = [1, 2, 3];
let myArr = {1, 2, 3};
const myArr = [1, 2, 3];
Only A and C
new Array(1, 2, 3)
[1, 2, 3]
Array(1, 2, 3)
{1, 2, 3}