What will be the output of the following JavaScript code? [code] const prototype1 = {}; const object1 = Object.create(prototype1); console.l

Trung Minh

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

Tìm kiếm

Back
Top