If prototype chain of an object made using object literal is this
__proto__ === null
|
|
__proto__ === Object.prototype
|
|
{ object literal }
What is the same for an array ?
I am guessing it would be this
__proto__ === null
|
|
__proto__ === Object.prototype
|
|
__proto__ === Array.prototype
|
|
[ array literal ]
Because everything in javascript is Object datatype thus Array constructor should also inherit from Object. Is this correct ?
Type your question above this line.
Course: https://www.educative.io/collection/5679346740101120/5707702298738688
Lesson: https://www.educative.io/collection/page/5679346740101120/5707702298738688/6330230964748288