Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
untitled notebook
node v9.11.2
version:
1.0.0
endpoint
share
tweet
class Foo { set ham(v) { console.log('side effect!'); } } Object.assign(Object.create(Foo.prototype), { ham: 3 });
Loading…
no comments
sign in
to comment