- Obj: This parameter holds the target object and it is used to set the prototype.
- Prototype: This parameter holds the object’s new prototype. It can be any object or simply a null.
Return value: This method always returns a Boolean value which indicates whether setting the prototype was successfully done or not.
Exceptions:A TypeError is exception given as the result, when the target is not object.
true true false "answer" "value"
true true false false "Geeks have fun."
- Google Chrome 49 and above
- Edge 12 and above
- Firefox 42 and above
- Opera 36 and above
- Safari 10 and above