prototype in Javascript
Jul 30, 2021 · 1 min read · prototype in Javascript: example: let object1= { name: "aditya", city:"blr", age: "23" }; let object2 = { name: "sameer", gender: "male" }; object1.proto= object2; // inherited the property the object2 into the object1, we can access the proper...
Join discussion