JavaScript : Prototype
Prerequisites
Datatypes
Object
Try running the below code. We defined a new person object with properties firstname and lastname, and run toString method on the object.
const person = {
firstname:"Rohan",
lastname:"Kamal"
}
console.log(per...
subhamsahu.hashnode.dev3 min read