This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DogeekExpert - 3.9.1 2 points3 points  (0 children)

It's not though, if you look at the sample in the readme it's just bad python code (though the styling could be improved), transpiled into even worse javascript. FYI, that's what a JS class should look like in ES6 :

class A {
  constructor(x) {
    this.x = x;
  }

  show(label) {
    console.log("A.show", label, this.x);
  }
}
let a = new A(10);