Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
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.
To refer to the global object.
To refer to the parent object.
To refer to the child object.
To refer to the current object.
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;
What is the output of the following code?
var x = 5;var y = 2;console.log(x % y);
2
2.5
3
1
Determines if a value is a number or not.
Determines if a value is a string or not.
Determines if a value is undefined or not.
Determines if a value is null or not.
There is no difference between null and undefined.
null is a value that represents an empty object reference, while undefined is a value that represents an uninitialized variable.
undefined is a value that represents an empty object reference, while null is a value that represents an uninitialized variable.
null and undefined both represent an uninitialized variable.
The global object
The parent object
The current object
The child object
Number
Array
Object
Function
A function that is called when an error occurs.
A function that is called when a button is clicked.
A function that is passed as an argument to another function and is called when the first function has finished executing.
A function that is used to generate random numbers.
console.log(typeof null);
string
number
object
null