Message from JavaScript discussions

July 2018

— I thought to know, but maybe not. I try to explain how I think reading the code.

- var prototype = Object.create(RigidShape.prototype);
Here I create a new object which is an instance of RigidShape.

Message permanent page


- prototype.constructor = Rectangle;
Here I make Rectangle the constructor of the object I created, am I right?

— Hi, im new into JS!

— Anyone know cors?

— Drop a link on this (stupid imo) tutorial

— I bet it's a new operator sect

— Https://

— I dont like his composition code with Object.assign, but fully agree with the concept

— He cuts a lot of corners

— He doesn't write pure functional at all :3

— Maybe so it's easier to follow

— prototype.constructor seems wrong