Comment

Comment by SketchySeaBeast

To clarify I meant this example:

  var cons = function () {
     this.a = 1;
     this.b = 2;
  }
  var obj = new cons(); 
 
  cons.prototype.b = 3;
  cons.prototype.c = 4;
Was just confused as it seems to be applying class concepts to a function.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton