Object.create, chaining and 'this' – stackoverflow.com

Given the following program, console logs correctly - note the chained init function and return this: const cat = { init(sound) { this.sound = sound; return this; }, ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Object.create, chaining and 'this' – stackoverflow.com"