Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following JavaScript code?
const object1 = {
property1: 20
};
console.log(Object.is(object1));

What will be the output of the following JavaScript code?
const object1 = {
property1: 20
};
console.log(Object.is(object1));
a) 20
b) true
c) false
d) error

Answer: c
Explanation: The Object.is() method of JavaScript is used to determine whether two values are the same value. There is a special built-in method that compares values. This method returns a Boolean indicating whether or not the two arguments are the same value.

Join The Discussion