Hi, thanks for the great post. Aren't "public class fields" actually *instance* fields? When I print an instance to the console, all the public class fields are listed there, as its direct properties. Meaning that every time we instantiate an object, it gets its own fresh copy of the "public class fields". Please correct me if I'm wrong. I'm just looking for a way to write actual *class* fields, which all instances can access via the prototype chain. Do you know of such a proposal that exists? Would love to give it a test run. Thanks a lot! Jonathan
Comment
Hi, thanks for the great post.
Aren't "public class fields" actually *instance* fields? When I print an instance to the console, all the public class fields are listed there, as its direct properties. Meaning that every time we instantiate an object, it gets its own fresh copy of the "public class fields". Please correct me if I'm wrong. I'm just looking for a way to write actual *class* fields, which all instances can access via the prototype chain. Do you know of such a proposal that exists? Would love to give it a test run.
Thanks a lot!
Jonathan