Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
const el = document.querySelector("#app");
const spicyObject = {
spicyMethod() {
return 'feel the heat';
const fullOfPotential = {};
Object.setPrototypeOf(fullOfPotential, spicyObject);
fullOfPotential.spicyMethod(); // 'feel the heat'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment