Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
To define the arguments for the function.
To declare a variable.
To exit the function and return a value.
To create a loop.
What is the output of the following code?
console.log(3 + "2");
5
32
6
23
There is no difference between == and ===.
== performs a strict comparison, while === performs a loose comparison.
=== performs a strict comparison, while == performs a loose comparison.
== and === both perform a strict comparison.
variable name = value;
var name = value;
let name = value;
all of the above
Which of the following is not a valid way to declare a variable in JavaScript?
var myVar = 5;
let myVar = 10;
const myVar = "hello";
myVar = true;
null
undefined
object
number
Deletes a variable
Deletes a property of an object
Deletes an element from an array
Deletes a function
string
boolean
console.log(2 + 2 + "2");
42
22
221
4
To refer to the global object.
To refer to the parent object.
To refer to the child object.
To refer to the current object.