Trung Minh
New member
What will be the output of the following JavaScript code?
A. true
B. false
C. error
D. 0
Code:
const prototype1 = {};
const object1 = Object.create(prototype1);
console.log(Object.getPrototypeOf(object1) === prototype1);
B. false
C. error
D. 0