me when I have

class Foo {
  constructor(){}
  bar() {
    console.log("the");
  }
}

and I

var baz = new Foo();
baz.bar();

and it doesn’t work

EDIT: it’s because baz in my code was named window and window is reserved

Dec 19, 2021, 10:09 PM
0 1 0

comments